Module: Api::V1::Teams::ControllerBase::StrongParameters

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

Instance Method Summary collapse

Instance Method Details

#team_paramsObject

Only allow a list of trusted parameters through.



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

def team_params
  strong_params = params.require(:team).permit(
    *permitted_fields,
    :name,
    :time_zone,
    :locale,
    # 🚅 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