class ActiveSupport::DescendantsTracker::DescendantsArray

def cleanup!

def cleanup!
  @refs.delete_if { |ref| !ref.weakref_alive? }
end