Skip to content

Commit

Permalink
Remove rails info route from rake routes output [#5452 state:resolved]
Browse files Browse the repository at this point in the history
Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
pixeltrix authored and josevalim committed Aug 25, 2010
1 parent c1b49f1 commit 0b9357d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/tasks/routes.rake
Expand Up @@ -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
Expand Down

0 comments on commit 0b9357d

Please sign in to comment.