aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/rescue.rb
diff options
context:
space:
mode:
authorLaszlo Bacsi <lackac@lackac.hu>2009-01-02 10:46:48 -0600
committerJoshua Peek <josh@joshpeek.com>2009-01-02 10:46:48 -0600
commit606176a55b90c27687ae17f40fd1af0a86b62246 (patch)
treec62df060dbc483fa337226e23d9c0924aad315c2 /actionpack/lib/action_controller/rescue.rb
parentf90160c6c1ec457f0b4b01c6fef78146271bc070 (diff)
downloadrails-606176a55b90c27687ae17f40fd1af0a86b62246.tar.gz
rails-606176a55b90c27687ae17f40fd1af0a86b62246.tar.bz2
rails-606176a55b90c27687ae17f40fd1af0a86b62246.zip
Fixed call_with_exception for Routing Errors [#1684 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionpack/lib/action_controller/rescue.rb')
-rw-r--r--actionpack/lib/action_controller/rescue.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/rescue.rb b/actionpack/lib/action_controller/rescue.rb
index de35b53872..8824d983b4 100644
--- a/actionpack/lib/action_controller/rescue.rb
+++ b/actionpack/lib/action_controller/rescue.rb
@@ -60,8 +60,8 @@ module ActionController #:nodoc:
module ClassMethods
def call_with_exception(env, exception) #:nodoc:
- request = env["actioncontroller.rescue.request"]
- response = env["actioncontroller.rescue.response"]
+ request = env["actioncontroller.rescue.request"] ||= Request.new(env)
+ response = env["actioncontroller.rescue.response"] ||= Response.new
new.process(request, response, :rescue_action, exception)
end
end