diff options
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r-- | activerecord/test/cases/associations/has_many_through_associations_test.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/activerecord/test/cases/associations/has_many_through_associations_test.rb b/activerecord/test/cases/associations/has_many_through_associations_test.rb index 8e64fd7c70..198e537dc0 100644 --- a/activerecord/test/cases/associations/has_many_through_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_through_associations_test.rb @@ -4,7 +4,6 @@ require 'models/person' require 'models/reference' require 'models/job' require 'models/reader' -require 'models/secure_reader' require 'models/comment' require 'models/tag' require 'models/tagging' @@ -60,7 +59,7 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase end def test_associate_existing_with_strict_mass_assignment_sanitizer - ActiveRecord::Base.mass_assignment_sanitizer = :strict + SecureReader.mass_assignment_sanitizer = :strict SecureReader.new @@ -71,7 +70,7 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase post.secure_people << person end ensure - ActiveRecord::Base.mass_assignment_sanitizer = :logger + SecureReader.mass_assignment_sanitizer = :logger end def test_associate_existing_record_twice_should_add_to_target_twice |