From fcc3e86ccecfde0f19eb570c6c2d1341441d0870 Mon Sep 17 00:00:00 2001 From: Prem Sichanugrist Date: Wed, 27 Jan 2010 22:46:59 +0700 Subject: [PATCH] Strip out the routing to '/rails/info/properties' from 'rake routes' --- railties/lib/rails/tasks/routes.rake | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/railties/lib/rails/tasks/routes.rake b/railties/lib/rails/tasks/routes.rake index e8da72d..ac0f440 100644 --- a/railties/lib/rails/tasks/routes.rake +++ b/railties/lib/rails/tasks/routes.rake @@ -7,6 +7,7 @@ task :routes => :environment do reqs = route.requirements.empty? ? "" : route.requirements.inspect {:name => name, :verb => route.verb.to_s, :path => route.path, :reqs => reqs} end + routes.reject!{ |r| r[:path] == "/rails/info/properties" } # skip the route if it's internal info route name_width = routes.collect {|r| r[:name]}.collect {|n| n.length}.max verb_width = routes.collect {|r| r[:verb]}.collect {|v| v.length}.max path_width = routes.collect {|r| r[:path]}.collect {|s| s.length}.max -- 1.6.4.2