Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove rails info route from rake routes output [#5452 state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
commit 55c1f351c40958e04fe234b72815729daf71b4f1 1 parent d887dbc
@pixeltrix pixeltrix authored josevalim committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/tasks/routes.rake
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.