123456789_123456789_123456789_123456789_123456789_

Class: ActionController::Middleware::ActionMiddleware

Relationships & Source Files
Inherits: Object
Defined in: actionpack/lib/action_controller/middleware.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(controller, app) ⇒ ActionMiddleware

[ GitHub ]

  
# 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