diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-05-17 11:09:14 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-05-17 12:24:59 -0500 |
commit | c3319504f066c9362b4b30e1e15bbd1cadde8e25 (patch) | |
tree | 2576c06099ec7be06e08e695e4d8a1086ccdfe48 /actionpack/lib/action_controller/base | |
parent | 98eaa2c6834e418959f2a1a18421e4811167e03b (diff) | |
download | rails-c3319504f066c9362b4b30e1e15bbd1cadde8e25.tar.gz rails-c3319504f066c9362b4b30e1e15bbd1cadde8e25.tar.bz2 rails-c3319504f066c9362b4b30e1e15bbd1cadde8e25.zip |
Rescue hack was supposed to be removed. Some how it crept back in.
Diffstat (limited to 'actionpack/lib/action_controller/base')
-rw-r--r-- | actionpack/lib/action_controller/base/base.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/base/base.rb b/actionpack/lib/action_controller/base/base.rb index 2813e71d12..c59068c628 100644 --- a/actionpack/lib/action_controller/base/base.rb +++ b/actionpack/lib/action_controller/base/base.rb @@ -368,9 +368,8 @@ module ActionController #:nodoc: attr_reader :template def action(name, env) - # HACK: For global rescue to have access to the original request and response - request = env["action_controller.rescue.request"] ||= ActionDispatch::Request.new(env) - response = env["action_controller.rescue.response"] ||= ActionDispatch::Response.new + request = ActionDispatch::Request.new(env) + response = ActionDispatch::Response.new self.action_name = name && name.to_s process(request, response).to_a end |