class ActiveSupport::Reloader

def self.to_prepare(*args, &block)

Registers a callback that will run once at application startup and every time the code is reloaded.
def self.to_prepare(*args, &block)
  set_callback(:prepare, *args, &block)
end