aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/middleware.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/middleware.rb b/actionpack/lib/action_controller/middleware.rb
index 5fccca0b48..d2a404c1b1 100644
--- a/actionpack/lib/action_controller/middleware.rb
+++ b/actionpack/lib/action_controller/middleware.rb
@@ -7,6 +7,7 @@ module ActionController
def call(env)
controller = @controller.allocate
+ controller.send(:initialize)
controller.app = @app
controller._call(env)
end
@@ -24,6 +25,9 @@ module ActionController
def _call(env)
@_env = env
+ @_request = ActionDispatch::Request.new(env)
+ @_response = ActionDispatch::Response.new
+ @_response.request = request
process(:index)
end