diff options
author | José Valim <jose.valim@gmail.com> | 2011-08-01 04:50:06 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-08-01 04:50:06 -0700 |
commit | 6b3af028acdd8c97b7b6088117a042ddfd7f3038 (patch) | |
tree | d70bff398e2702b7d8cea400f9b2d56be3dd28a1 /railties | |
parent | 860202e8b2e3579402d48d7e56fa738a9529a340 (diff) | |
parent | b93a918337e99c3fe3ad059f093b1ee56b9e6a7d (diff) | |
download | rails-6b3af028acdd8c97b7b6088117a042ddfd7f3038.tar.gz rails-6b3af028acdd8c97b7b6088117a042ddfd7f3038.tar.bz2 rails-6b3af028acdd8c97b7b6088117a042ddfd7f3038.zip |
Merge pull request #2385 from bogdan/test_default_sanitizer2
MassAssignmentProtection: consider 'id' insensetive in StrictSanitizer
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt index ee068b0202..80198cc21e 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt @@ -34,6 +34,11 @@ # like if you have constraints or database-specific column types # config.active_record.schema_format = :sql + <%- unless options.skip_active_record? -%> + # Raise exception on mass assignment protection for ActiveRecord models + config.active_record.mass_assignment_sanitizer = :strict + <%- end -%> + # Print deprecation notices to the stderr config.active_support.deprecation = :stderr end |