Class: ActionController::Middleware::ActionMiddleware
Relationships & Source Files | |
Inherits: | Object |
Defined in: | actionpack/lib/action_controller/middleware.rb |
Class Method Summary
- .new(controller, app) ⇒ ActionMiddleware constructor
Instance Method Summary
Constructor Details
.new(controller, app) ⇒ ActionMiddleware
# File 'actionpack/lib/action_controller/middleware.rb', line 4
def initialize(controller, app) @controller, @app = controller, app end
Instance Method Details
#call(env)
[ GitHub ]# File 'actionpack/lib/action_controller/middleware.rb', line 8
def call(env) request = ActionDispatch::Request.new(env) @controller.build(@app).dispatch(:index, request) end