Method: Insights::API::Common::ApplicationControllerMixins::Parameters#params_for_update
- Defined in:
- lib/insights/api/common/application_controller_mixins/parameters.rb
#params_for_update ⇒ Object
116 117 118 119 120 121 122 |
# File 'lib/insights/api/common/application_controller_mixins/parameters.rb', line 116 def params_for_update check_if_openapi_enabled # We already validate this with OpenAPI validator, here only to satisfy the strong parameters check attr_list = *api_doc_definition.all_attributes - api_doc_definition.read_only_attributes strong_params_hash = sanctified_permit_param(api_doc_definition, attr_list) body_params.permit(strong_params_hash) end |