Parent

Included Modules

Class Index [+]

Quicksearch

ActionDispatch::Callbacks

Provide callbacks to be executed before and after the request dispatch.

Public Class Methods

after(*args, &block) click to toggle source
    # File lib/action_dispatch/middleware/callbacks.rb, line 18
18:     def self.after(*args, &block)
19:       set_callback(:call, :after, *args, &block)
20:     end
before(*args, &block) click to toggle source
    # File lib/action_dispatch/middleware/callbacks.rb, line 14
14:     def self.before(*args, &block)
15:       set_callback(:call, :before, *args, &block)
16:     end
new(app) click to toggle source
    # File lib/action_dispatch/middleware/callbacks.rb, line 22
22:     def initialize(app)
23:       @app = app
24:     end

Public Instance Methods

call(env) click to toggle source
    # File lib/action_dispatch/middleware/callbacks.rb, line 26
26:     def call(env)
27:       run_callbacks :call do
28:         @app.call(env)
29:       end
30:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.