File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def dangerous_attribute_methods # :nodoc:
33
33
Base . private_instance_methods -
34
34
Base . superclass . instance_methods -
35
35
Base . superclass . private_instance_methods +
36
- %i[ __id__ dup freeze frozen? hash object_id class clone ]
36
+ %i[ __id__ dup freeze frozen? hash class clone ]
37
37
) . map { |m | -m . to_s } . to_set . freeze
38
38
end
39
39
end
Original file line number Diff line number Diff line change @@ -1261,7 +1261,7 @@ def test_preload_with_available_records_with_through_association
1261
1261
end
1262
1262
1263
1263
assert_predicate author . association ( :essay_category ) , :loaded?
1264
- assert categories . map ( &:object_id ) . include? ( author . essay_category . object_id )
1264
+ assert categories . map ( &:__id__ ) . include? ( author . essay_category . __id__ )
1265
1265
end
1266
1266
1267
1267
def test_preload_with_only_some_records_available_with_through_associations
@@ -1307,7 +1307,7 @@ def test_preload_with_available_records_queries_when_scoped
1307
1307
end
1308
1308
1309
1309
assert_predicate post . association ( :author ) , :loaded?
1310
- assert_not_equal david . object_id , post . author . object_id
1310
+ assert_not_equal david . __id__ , post . author . __id__
1311
1311
end
1312
1312
1313
1313
def test_preload_with_available_records_queries_when_collection
@@ -1319,7 +1319,7 @@ def test_preload_with_available_records_queries_when_collection
1319
1319
end
1320
1320
1321
1321
assert_predicate post . association ( :comments ) , :loaded?
1322
- assert_empty post . comments . map ( &:object_id ) & comments . map ( &:object_id )
1322
+ assert_empty post . comments . map ( &:__id__ ) & comments . map ( &:__id__ )
1323
1323
end
1324
1324
1325
1325
def test_preload_with_available_records_queries_when_incomplete
You can’t perform that action at this time.
0 commit comments