Module: Api::V1::Platform::AccessTokensController::StrongParameters

Included in:
Api::V1::Platform::AccessTokensController
Defined in:
app/controllers/api/v1/platform/access_tokens_controller.rb

Instance Method Summary collapse

Instance Method Details

#access_token_paramsObject

Only allow a list of trusted parameters through.



37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'app/controllers/api/v1/platform/access_tokens_controller.rb', line 37

def access_token_params
  strong_params = params.require(:platform_access_token).permit(
    *permitted_fields,
    :description,
    # 🚅 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