Flowdock
method

to_prepare

Importance_1
v3.0.5 - Show latest stable - 0 notes - Class: ActionDispatch::Callbacks
to_prepare(*args, &block) public

Add a preparation callback. Preparation callbacks are run before every request in development mode, and before the first request in production mode.

If a symbol with a block is given, the symbol is used as an identifier. That allows to_prepare to be called again with the same identifier to replace the existing callback. Passing an identifier is a suggested practice if the code adding a preparation block may be reloaded.

Show source
Register or log in to add new notes.