aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-01-06 21:54:46 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-01-06 21:54:46 -0300
commitcc24eba5441d80b9e398eeee96c6f1f5647fa85b (patch)
tree6eeaefbb123fc564668664f8aa28b3ef37af0f49 /actionpack/lib
parentea26229abefb3429e8edbe5ba8313ad3edff23e4 (diff)
downloadrails-cc24eba5441d80b9e398eeee96c6f1f5647fa85b.tar.gz
rails-cc24eba5441d80b9e398eeee96c6f1f5647fa85b.tar.bz2
rails-cc24eba5441d80b9e398eeee96c6f1f5647fa85b.zip
Fix operators precedence issue
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_dispatch/middleware/debug_exceptions.rb2
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 e710bfe9fd..f897d9b0bc 100644
--- a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
+++ b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
@@ -84,7 +84,7 @@ module ActionDispatch
end
def routes_inspector(exception)
- if @routes_app.respond_to?(:routes) && exception.is_a?(ActionController::RoutingError) || exception.is_a?(ActionView::Template::Error)
+ if @routes_app.respond_to?(:routes) && (exception.is_a?(ActionController::RoutingError) || exception.is_a?(ActionView::Template::Error))
ActionDispatch::Routing::RoutesInspector.new(@routes_app.routes.routes)
end
end