Module: Insights::API::Common::ApplicationControllerMixins::RequestBodyValidation
- Defined in:
- lib/insights/api/common/application_controller_mixins/request_body_validation.rb
Defined Under Namespace
Classes: BodyParseError
Class Method Summary collapse
Class Method Details
.included(other) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/insights/api/common/application_controller_mixins/request_body_validation.rb', line 9 def self.included(other) ActionController::Parameters.action_on_unpermitted_parameters = :raise other.include(OpenapiEnabled) other.before_action(:validate_request) end |