class ActiveSupport::Reloader

def self.after_class_unload(*args, &block)

Registers a callback that will run immediately after the classes are unloaded.
def self.after_class_unload(*args, &block)
  set_callback(:class_unload, :after, *args, &block)
end