aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-04-03 07:50:58 +0100
committerChristopher Baines <mail@cbaines.net>2018-04-03 21:58:55 +0100
commit78c80b1a5eaa1d4408951c90a5881cfb277b4deb (patch)
treec3030cf351e15bdc364e11d14e0d889fe5272547
parent9840280b5fb6c4fab31446d43e1a0b43bf540bcd (diff)
downloadgovuk-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.rb5
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