diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2010-08-25 06:31:11 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-08-25 07:22:20 -0300 |
commit | 0b9357d401677f289994369e48c2065880978a53 (patch) | |
tree | 56afdd7ef10089b8a1caac40eaed544347e1115e /railties | |
parent | c1b49f1e18e08580196f5acfaacebcf4c3aa17d3 (diff) | |
download | rails-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>
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/tasks/routes.rake | 2 |
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 |