class method
self.clear
Ruby on Rails 3.2.22.5
Since v3.0.20 Last seen in v6.1.7.10Signature
self.clear()
No documentation comment.
Source
# File activesupport/lib/active_support/descendants_tracker.rb, line 18
def self.clear
if defined? ActiveSupport::Dependencies
@@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
else
@@direct_descendants.clear
end
end
Defined in activesupport/lib/active_support/descendants_tracker.rb line 18
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::DescendantsTracker