diff options
author | José Valim <jose.valim@gmail.com> | 2011-10-27 04:05:06 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-10-27 04:05:06 -0700 |
commit | 1ad9138c009c941f453dcc6a14f308e6da9fb84a (patch) | |
tree | f553de8a8fbf2cb7fb94fdbd327545c5b9cefc43 /activerecord | |
parent | a9863d672bd2c875357cf87ac27b416bd65a24e3 (diff) | |
parent | 95d9c120d3bdf54173a10b25bbcbf1138815ff2e (diff) | |
download | rails-1ad9138c009c941f453dcc6a14f308e6da9fb84a.tar.gz rails-1ad9138c009c941f453dcc6a14f308e6da9fb84a.tar.bz2 rails-1ad9138c009c941f453dcc6a14f308e6da9fb84a.zip |
Merge pull request #3449 from arunagw/checks_for_instance_writers
More checks for instance writers.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/mass_assignment_security_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/cases/mass_assignment_security_test.rb b/activerecord/test/cases/mass_assignment_security_test.rb index 23961918f4..9fff50edcb 100644 --- a/activerecord/test/cases/mass_assignment_security_test.rb +++ b/activerecord/test/cases/mass_assignment_security_test.rb @@ -232,7 +232,8 @@ class MassAssignmentSecurityTest < ActiveRecord::TestCase def test_protection_against_class_attribute_writers [:logger, :configurations, :primary_key_prefix_type, :table_name_prefix, :table_name_suffix, :pluralize_table_names, :default_timezone, :schema_format, :lock_optimistically, :timestamped_migrations, :default_scopes, - :connection_handler, :nested_attributes_options].each do |method| + :connection_handler, :nested_attributes_options, :_attr_readonly, :attribute_types_cached_by_default, + :attribute_method_matchers, :time_zone_aware_attributes, :skip_time_zone_conversion_for_attributes].each do |method| assert_respond_to Task, method assert_respond_to Task, "#{method}=" assert_respond_to Task.new, method |