Module: Api::V1::Webhooks::Outgoing::Endpoints::ControllerBase::StrongParameters
- Defined in:
- app/controllers/concerns/api/v1/webhooks/outgoing/endpoints/controller_base.rb
Instance Method Summary collapse
-
#endpoint_params ⇒ Object
Only allow a list of trusted parameters through.
Instance Method Details
#endpoint_params ⇒ Object
Only allow a list of trusted parameters through.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/concerns/api/v1/webhooks/outgoing/endpoints/controller_base.rb', line 6 def endpoint_params strong_params = params.require(:webhooks_outgoing_endpoint).permit( *permitted_fields, :url, :name, :api_version, :scaffolding_absolutely_abstract_creative_concept_id, # 🚅 super scaffolding will insert new fields above this line. *permitted_arrays, event_type_ids: [], # 🚅 super scaffolding will insert new arrays above this line. ) process_params(strong_params) strong_params end |