Method: ActiveSupport::DescendantsTracker.clear
- Defined in:
- activesupport/lib/active_support/descendants_tracker.rb
.clear(classes) ⇒ Object
:nodoc:
78 79 80 81 82 83 84 85 86 87 |
# File 'activesupport/lib/active_support/descendants_tracker.rb', line 78 def clear(classes) # :nodoc: raise "DescendantsTracker.clear was disabled because config.enable_reloading is false" if @clear_disabled classes.each do |klass| @excluded_descendants << klass klass.descendants.each do |descendant| @excluded_descendants << descendant end end end |