method

accumulate_descendants

rails latest stable - Class: ActiveSupport::DescendantsTracker

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

accumulate_descendants(klass, acc)
private

No documentation available.

# File activesupport/lib/active_support/descendants_tracker.rb, line 146
          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