diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-12-26 12:15:18 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-12-26 12:15:18 -0300 |
commit | 84d38f6033a0eca73feb0eb8c43d99913b0204cb (patch) | |
tree | 3c6ddb99235f774085ba36c00a210b70c2edfbec /actionpack/lib/action_dispatch | |
parent | 8fe1dfd2212cae114473da3a0074607ecf70e3ee (diff) | |
download | rails-84d38f6033a0eca73feb0eb8c43d99913b0204cb.tar.gz rails-84d38f6033a0eca73feb0eb8c43d99913b0204cb.tar.bz2 rails-84d38f6033a0eca73feb0eb8c43d99913b0204cb.zip |
We need to check explictly that env['action_dispatch.show_exceptions']
is false.
If it is nil we can't raise the exception
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/debug_exceptions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb index 287b4ce2ff..6705e531cb 100644 --- a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb +++ b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb @@ -23,7 +23,7 @@ module ActionDispatch raise ActionController::RoutingError, "No route matches [#{env['REQUEST_METHOD']}] #{env['PATH_INFO'].inspect}" end rescue Exception => exception - raise exception unless env['action_dispatch.show_exceptions'] + raise exception if env['action_dispatch.show_exceptions'] == false end exception ? render_exception(env, exception) : response |