class method
self.accumulate_descendants
Ruby on Rails 7.0.10
Since v4.0.13 Last seen in v7.0.10 PrivateSignature
self.accumulate_descendants(klass, acc)
No documentation comment.
Parameters
-
klassreq -
accreq
Source
# File activesupport/lib/active_support/descendants_tracker.rb, line 143
def accumulate_descendants(klass, acc)
if direct_descendants = @@direct_descendants[klass]
direct_descendants.each do |direct_descendant|
acc << direct_descendant
accumulate_descendants(direct_descendant, acc)
end
end
end
Defined in activesupport/lib/active_support/descendants_tracker.rb line 143
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::DescendantsTracker