Skip to content

Commit 6f30cc0

Browse files
committed
Stop using the deprecated direct_descendants in Active Record
1 parent ed0ce4b commit 6f30cc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/model_schema.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ def reload_schema_from_cache
595595
@schema_loaded = false
596596
@attribute_names = nil
597597
@yaml_encoder = nil
598-
direct_descendants.each do |descendant|
598+
subclasses.each do |descendant|
599599
descendant.send(:reload_schema_from_cache)
600600
end
601601
end

0 commit comments

Comments
 (0)