Class

ActionController::Dispatcher

Inheritance
< Object
Included Modules
ActiveSupport::Callbacks

Dispatches requests to the appropriate controller and takes care of reloading the app after each request when Dependencies.load? is true.

Methods

Class

Visibility Signature
public cleanup_application ()
public define_dispatcher_callbacks (cache_classes)
public dispatch (cgi = nil, session_options = CgiRequest::DEFAULT_SESSION_OPTIONS, output = $stdout)
public new (output = $stdout, request = nil, response = nil)
public reload_application ()
public run_prepare_callbacks ()
public to_prepare (identifier = nil, &block)

Instance

Visibility Signature
public _call (env)
public call (env)
public dispatch ()
public dispatch_cgi (cgi, session_options)
public flush_logger ()

Class Method Detail

cleanup_application()

define_dispatcher_callbacks(cache_classes)

dispatch(cgi = nil, session_options = CgiRequest::DEFAULT_SESSION_OPTIONS, output = $stdout)

DEPRECATE: Remove CGI support

new(output = $stdout, request = nil, response = nil)

DEPRECATE: Remove arguments, since they are only used by CGI

reload_application()

run_prepare_callbacks()

to_prepare(identifier = nil, &block)

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

An optional identifier may be supplied for the callback. If provided, to_prepare may 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.

Instance Method Detail

_call(env)

call(env)

dispatch()

dispatch_cgi(cgi, session_options)

DEPRECATE: Remove CGI support

flush_logger()