Skip to content
Browse files

Merge pull request #3449 from arunagw/checks_for_instance_writers

More checks for instance writers.
  • Loading branch information...
2 parents a9863d6 + 95d9c12 commit 1ad9138c009c941f453dcc6a14f308e6da9fb84a @josevalim josevalim committed Oct 27, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 activerecord/test/cases/mass_assignment_security_test.rb
View
3 activerecord/test/cases/mass_assignment_security_test.rb
@@ -232,7 +232,8 @@ def test_create_with_bang_with_without_protection_with_attr_protected_attributes
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

0 comments on commit 1ad9138

Please sign in to comment.
Something went wrong with that request. Please try again.