aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-12-03 11:38:25 +0100
committerJosé Valim <jose.valim@gmail.com>2011-12-03 11:38:25 +0100
commit2ab2077235308aaa82dc430f1da8d6519fb7dac0 (patch)
tree05ec14d70283ffd4b342b9ef155849666d50609a /actionpack/lib/action_dispatch/middleware/show_exceptions.rb
parent0e17cf17ebeb70490d7c7cd25c6bf8f9401e44b3 (diff)
downloadrails-2ab2077235308aaa82dc430f1da8d6519fb7dac0.tar.gz
rails-2ab2077235308aaa82dc430f1da8d6519fb7dac0.tar.bz2
rails-2ab2077235308aaa82dc430f1da8d6519fb7dac0.zip
Fix failing cascade exception.
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/show_exceptions.rb')
-rw-r--r--actionpack/lib/action_dispatch/middleware/show_exceptions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
index 9efe90a670..0c95248611 100644
--- a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
+++ b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
@@ -40,7 +40,7 @@ module ActionDispatch
raise exception if env['action_dispatch.show_exceptions'] == false
end
- response ? response : render_exception_with_failsafe(env, exception)
+ response || render_exception_with_failsafe(env, exception)
end
private