Flowdock
method

clear

Importance_0
v3.0.5 - Show latest stable - 0 notes - Class: ActiveSupport::DescendantsTracker
clear() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/descendants_tracker.rb, line 20
    def self.clear
      @@direct_descendants.each do |klass, descendants|
        if ActiveSupport::Dependencies.autoloaded?(klass)
          @@direct_descendants.delete(klass)
        else
          descendants.reject! { |v| ActiveSupport::Dependencies.autoloaded?(v) }
        end
      end
    end
Register or log in to add new notes.