Method: ActiveSupport::DescendantsTracker::DescendantsArray#cleanup!
- Defined in:
- lib/active_support/descendants_tracker.rb
#cleanup! ⇒ Object
99 100 101 |
# File 'lib/active_support/descendants_tracker.rb', line 99 def cleanup! @refs.delete_if { |ref| !ref.weakref_alive? } end |