diff options
author | Christopher Baines <mail@cbaines.net> | 2018-04-03 07:50:58 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-04-03 21:58:55 +0100 |
commit | 78c80b1a5eaa1d4408951c90a5881cfb277b4deb (patch) | |
tree | c3030cf351e15bdc364e11d14e0d889fe5272547 | |
parent | 9840280b5fb6c4fab31446d43e1a0b43bf540bcd (diff) | |
download | govuk-mini-environment-admin-78c80b1a5eaa1d4408951c90a5881cfb277b4deb.tar govuk-mini-environment-admin-78c80b1a5eaa1d4408951c90a5881cfb277b4deb.tar.gz |
Fix the strong params config
Raise everywhere, instead of log, as this is more explicit.
-rw-r--r-- | config/initializers/strong_params.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/config/initializers/strong_params.rb b/config/initializers/strong_params.rb index 07415fe..08970a2 100644 --- a/config/initializers/strong_params.rb +++ b/config/initializers/strong_params.rb @@ -1,3 +1,2 @@ -unless Rails.env.production? - ActionController::Parameters.action_on_unpermitted_parameters = :raise -end +Rails.application.config + .action_controller.action_on_unpermitted_parameters = :raise |