diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-26 13:24:03 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-26 13:24:03 -0700 |
commit | 8a826f5d6391926d7cdc267cc0069a399b7324d8 (patch) | |
tree | 616a88447ffe20cc1a865eb172328922b6aaec7b | |
parent | 605ab030a9a8fd8ce77ee20ab246875f958c551f (diff) | |
download | rails-8a826f5d6391926d7cdc267cc0069a399b7324d8.tar.gz rails-8a826f5d6391926d7cdc267cc0069a399b7324d8.tar.bz2 rails-8a826f5d6391926d7cdc267cc0069a399b7324d8.zip |
a redirect is not a dispatcher by definition, so eliminate test
-rw-r--r-- | actionpack/lib/action_dispatch/routing/inspector.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/inspector.rb b/actionpack/lib/action_dispatch/routing/inspector.rb index dc03a7370e..122bd5a7ca 100644 --- a/actionpack/lib/action_dispatch/routing/inspector.rb +++ b/actionpack/lib/action_dispatch/routing/inspector.rb @@ -16,7 +16,7 @@ module ActionDispatch @rack_app ||= begin endpoint = app.app - if app.redirect? || !app.dispatcher? + unless app.dispatcher? endpoint end end |