class ActionDispatch::Callbacks
Provides callbacks to be executed before and after dispatching the request.
def after(*args, &block)
def after(*args, &block) set_callback(:call, :after, *args, &block) end
def before(*args, &block)
def before(*args, &block) set_callback(:call, :before, *args, &block) end
def call(env)
def call(env) error = nil result = run_callbacks :call do @app.call(env) rescue => error end raise error if error result end
def initialize(app)
def initialize(app) @app = app end