Skip to content

Commit

Permalink
Stop using the deprecated direct_descendants in Active Record
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Oct 28, 2021
1 parent ed0ce4b commit 6f30cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/model_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ def reload_schema_from_cache
@schema_loaded = false
@attribute_names = nil
@yaml_encoder = nil
direct_descendants.each do |descendant|
subclasses.each do |descendant|
descendant.send(:reload_schema_from_cache)
end
end
Expand Down

0 comments on commit 6f30cc0

Please sign in to comment.