class method
self.accumulate_descendants
Ruby on Rails 4.2.9
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 39
def accumulate_descendants(klass, acc)
if direct_descendants = @@direct_descendants[klass]
acc.concat(direct_descendants)
direct_descendants.each { |direct_descendant| accumulate_descendants(direct_descendant, acc) }
end
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