class method
self.store_inherited
Ruby on Rails 6.0.6
Since v4.0.13 Last seen in v7.0.10Signature
self.store_inherited(klass, descendant)
This is the only method that is not thread safe, but is only ever called during the eager loading phase.
Parameters
-
klassreq -
descendantreq
Source
# File activesupport/lib/active_support/descendants_tracker.rb, line 39
def store_inherited(klass, descendant)
(@@direct_descendants[klass] ||= DescendantsArray.new) << descendant
end
Defined in activesupport/lib/active_support/descendants_tracker.rb line 39
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::DescendantsTracker