diff options
author | Yves Senn <yves.senn@gmail.com> | 2012-12-30 15:04:09 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-01-05 13:59:14 +0100 |
commit | af5c0fd85fce1adb311083dd1ecf96432ee8caa3 (patch) | |
tree | 7f2676d36cbd5847f9cafe98041272efdbad7ca6 /railties/lib | |
parent | 1e1c7afe3fed844e1a11a75e125a0ac7af1d468b (diff) | |
download | rails-af5c0fd85fce1adb311083dd1ecf96432ee8caa3.tar.gz rails-af5c0fd85fce1adb311083dd1ecf96432ee8caa3.tar.bz2 rails-af5c0fd85fce1adb311083dd1ecf96432ee8caa3.zip |
split formatting concerns from RoutesInspector
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/tasks/routes.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/tasks/routes.rake b/railties/lib/rails/tasks/routes.rake index 676b475640..1815c2fdc7 100644 --- a/railties/lib/rails/tasks/routes.rake +++ b/railties/lib/rails/tasks/routes.rake @@ -2,6 +2,6 @@ desc 'Print out all defined routes in match order, with names. Target specific c task routes: :environment do all_routes = Rails.application.routes.routes require 'action_dispatch/routing/inspector' - inspector = ActionDispatch::Routing::RoutesInspector.new - puts inspector.format(all_routes, ENV['CONTROLLER']).join "\n" + inspector = ActionDispatch::Routing::RoutesInspector.new(all_routes) + puts inspector.format(ActionDispatch::Routing::ConsoleFormatter.new, ENV['CONTROLLER']) end |