Action Dispatch Callbacks
Provides callbacks to be executed before and after dispatching the request.
Methods
Included Modules
Class Public methods
after(*args, &block) Link
Source: show
# File actionpack/lib/action_dispatch/middleware/callbacks.rb, line 17 def after(*args, &block) set_callback(:call, :after, *args, &block) end
before(*args, &block) Link
Source: show
# File actionpack/lib/action_dispatch/middleware/callbacks.rb, line 13 def before(*args, &block) set_callback(:call, :before, *args, &block) end
new(app) Link
Source: show
# File actionpack/lib/action_dispatch/middleware/callbacks.rb, line 22 def initialize(app) @app = app end