module ActiveSupport::Dependencies

def mark_for_unload(const_desc)

unloaded on each request, not just the next one.
Mark the provided constant name for unloading. This constant will be
def mark_for_unload(const_desc)
  name = to_constant_name const_desc
  if explicitly_unloadable_constants.include? name
    false
  else
    explicitly_unloadable_constants << name
    true
  end
end