method

to_prepare

to_prepare(&callback)
public

Add a preparation callback that will run before every request in development mode, or before the first request in production.

See Dispatcher#to_prepare.