aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-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