method

to_prepare

rails latest stable - Class: ActiveSupport::Reloader
to_prepare(*args, &block)
public

Registers a callback that will run once at application startup and every time the code is reloaded.