Ruby on Rails latest stable (v4.2.7) - 0 notes - Class: ActionDispatch::Callbacks

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here.

These similar methods exist in v4.2.7:

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.