Permalink
Browse files

Hide '/rails/info/properties' from 'rake routes' [#3793 state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
1 parent df8852d commit ab83800c3519595b909b760deb09c6ef46a07274 @sikachu sikachu committed with lifo Jan 27, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 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

0 comments on commit ab83800

Please sign in to comment.