aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/code/getting_started/config/environments/test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/guides/code/getting_started/config/environments/test.rb')
-rw-r--r--railties/guides/code/getting_started/config/environments/test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/guides/code/getting_started/config/environments/test.rb b/railties/guides/code/getting_started/config/environments/test.rb
index 1d45541d5c..e97f82c6bd 100644
--- a/railties/guides/code/getting_started/config/environments/test.rb
+++ b/railties/guides/code/getting_started/config/environments/test.rb
@@ -26,9 +26,9 @@ Blog::Application.configure do
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
+ # Raise exception on mass assignment protection for Active Record models
+ config.active_record.mass_assignment_sanitizer = :strict
+
# Print deprecation notices to the stderr
config.active_support.deprecation = :stderr
-
- # Allow pass debug_assets=true as a query parameter to load pages with unpackaged assets
- config.assets.allow_debugging = true
end