Module: Api::V1::Invitations::ControllerBase::StrongParameters

Defined in:
app/controllers/concerns/api/v1/invitations/controller_base.rb

Instance Method Summary collapse

Instance Method Details

#invitation_paramsObject

Only allow a list of trusted parameters through.



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'app/controllers/concerns/api/v1/invitations/controller_base.rb', line 6

def invitation_params
  strong_params = params.require(:invitation).permit(
    *permitted_fields,
    :email,
    # 🚅 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