From 2f05f1dbdba6172c20b0bb1f4f142cb99d0cd05e Mon Sep 17 00:00:00 2001 From: Taylor Griffin Date: Fri, 23 Jan 2015 13:22:52 +1100 Subject: [PATCH] raise exceptions on unpermitted params in staging --- config/environments/staging.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/environments/staging.rb b/config/environments/staging.rb index d8f0e530c..150c62d8c 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -1,6 +1,8 @@ Growstuff::Application.configure do # Settings specified here will take precedence over those in config/application.rb + config.action_controller.action_on_unpermitted_parameters = :raise + # Eager load code on boot. This eager loads most of Rails and # your application in memory, allowing both threaded web servers # and those relying on copy on write to perform better.