Method: WithModel::DescendantsTracker.clear

Defined in:
lib/with_model/descendants_tracker.rb

.clear(classes) ⇒ Object

:nodoc:



48
49
50
51
52
53
54
55
# File 'lib/with_model/descendants_tracker.rb', line 48

def clear(classes) # :nodoc:
  classes.each do |klass|
    @excluded_descendants << klass
    klass.descendants.each do |descendant|
      @excluded_descendants << descendant
    end
  end
end