Module: Core::Service::ContentFiltering
- Defined in:
- app/api/core/service/content_filtering.rb
Overview
Everything coming in and going out should be JSON.
Defined Under Namespace
Modules: Helpers Classes: InvalidBodyContentType, InvalidRequestedContentType, InvalidRequestedContentTypeOnFile
Class Method Summary collapse
Class Method Details
.registered(app) ⇒ Object
60 61 62 63 64 65 66 67 68 69 |
# File 'app/api/core/service/content_filtering.rb', line 60 def self.registered(app) app.helpers Helpers app.before_all_actions do check_acceptable_content_type_requested! process_request_body end app.after_all_actions { process_response_body } end |