diff options
author | Carl Lerche <carllerche@mac.com> | 2009-08-26 11:13:02 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2009-08-26 19:52:18 -0700 |
commit | 289076066551b5439e48ef743ca277af95eba36c (patch) | |
tree | d53cf7f2b44121c62e8b191c90c25505f4181643 | |
parent | efbd535f367a8cb46965c91e8edb1786b21bdefb (diff) | |
download | rails-289076066551b5439e48ef743ca277af95eba36c.tar.gz rails-289076066551b5439e48ef743ca277af95eba36c.tar.bz2 rails-289076066551b5439e48ef743ca277af95eba36c.zip |
Set the request and response in ActionController::Middleware
-rw-r--r-- | actionpack/lib/action_controller/middleware.rb | 4 |
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 |