Module: Api::V1::Memberships::ControllerBase::StrongParameters
- Defined in:
- app/controllers/concerns/api/v1/memberships/controller_base.rb
Instance Method Summary collapse
-
#membership_params ⇒ Object
Only allow a list of trusted parameters through.
Instance Method Details
#membership_params ⇒ Object
Only allow a list of trusted parameters through.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/controllers/concerns/api/v1/memberships/controller_base.rb', line 6 def membership_params strong_params = params.require(:membership).permit( *permitted_fields, :user_first_name, :user_last_name, # 🚅 super scaffolding will insert new fields above this line. *permitted_arrays, # 🚅 super scaffolding will insert new arrays above this line ) process_params(strong_params) strong_params end |