diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2012-05-19 11:22:00 +0100 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2012-05-19 11:22:00 +0100 |
commit | ec774983514d4ce1b593585ae14a17b730ee2c46 (patch) | |
tree | 907dfb1fec28621ec9519c164a5bb4057a1ceb7a /railties/lib/rails/application/route_inspector.rb | |
parent | 98657ad10c0bd799b8b314b9af3f0495267b2ddb (diff) | |
download | rails-ec774983514d4ce1b593585ae14a17b730ee2c46.tar.gz rails-ec774983514d4ce1b593585ae14a17b730ee2c46.tar.bz2 rails-ec774983514d4ce1b593585ae14a17b730ee2c46.zip |
Improve `rake routes` output for redirects - closes #6369.
Diffstat (limited to 'railties/lib/rails/application/route_inspector.rb')
-rw-r--r-- | railties/lib/rails/application/route_inspector.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/application/route_inspector.rb b/railties/lib/rails/application/route_inspector.rb index 845c54f416..b23fb3e920 100644 --- a/railties/lib/rails/application/route_inspector.rb +++ b/railties/lib/rails/application/route_inspector.rb @@ -16,7 +16,7 @@ module Rails class_name = app.class.name.to_s if class_name == "ActionDispatch::Routing::Mapper::Constraints" rack_app(app.app) - elsif class_name == "ActionDispatch::Routing::Redirect" || class_name !~ /^ActionDispatch::Routing/ + elsif ActionDispatch::Routing::Redirect === app || class_name !~ /^ActionDispatch::Routing/ app end end |