Module: Api::V1::Webhooks::Outgoing::EndpointsController::StrongParameters
- Included in:
- Api::V1::Webhooks::Outgoing::EndpointsController
- Defined in:
- app/controllers/api/v1/webhooks/outgoing/endpoints_controller.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.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'app/controllers/api/v1/webhooks/outgoing/endpoints_controller.rb', line 41 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 |