aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2010-08-25 06:31:11 +0100
committerJosé Valim <jose.valim@gmail.com>2010-08-25 07:22:20 -0300
commit0b9357d401677f289994369e48c2065880978a53 (patch)
tree56afdd7ef10089b8a1caac40eaed544347e1115e
parentc1b49f1e18e08580196f5acfaacebcf4c3aa17d3 (diff)
downloadrails-0b9357d401677f289994369e48c2065880978a53.tar.gz
rails-0b9357d401677f289994369e48c2065880978a53.tar.bz2
rails-0b9357d401677f289994369e48c2065880978a53.zip
Remove rails info route from rake routes output [#5452 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
-rw-r--r--railties/lib/rails/tasks/routes.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/tasks/routes.rake b/railties/lib/rails/tasks/routes.rake
index 65cf79a0a2..306c88c261 100644
--- a/railties/lib/rails/tasks/routes.rake
+++ b/railties/lib/rails/tasks/routes.rake
@@ -23,7 +23,7 @@ task :routes => :environment do
{: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
+ routes.reject! { |r| r[:path] =~ %r{/rails/info/properties} } # Skip the route if it's internal info route
name_width = routes.map{ |r| r[:name] }.map(&:length).max
verb_width = routes.map{ |r| r[:verb] }.map(&:length).max