Permalink
Browse files

Dont show the assets mount in rake routes

  • Loading branch information...
1 parent 38d92d7 commit 9f062970ca67833dda11ac17c54eec5bb5f111b1 @dhh dhh committed May 5, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 railties/lib/rails/tasks/routes.rake
View
3 railties/lib/rails/tasks/routes.rake
@@ -16,7 +16,8 @@ task :routes => :environment do
{:name => route.name.to_s, :verb => route.verb.to_s, :path => route.path, :reqs => reqs}
end
- routes.reject! { |r| r[:path] =~ %r{/rails/info/properties} } # Skip the route if it's internal info route
+ # Skip the route if it's internal info route
+ routes.reject! { |r| r[:path] =~ %r{/rails/info/properties|/assets} }
name_width = routes.map{ |r| r[:name].length }.max
verb_width = routes.map{ |r| r[:verb].length }.max

0 comments on commit 9f06297

Please sign in to comment.