Skip to content
This repository
Browse code

Dont show the assets mount in rake routes

  • Loading branch information...
commit 9f062970ca67833dda11ac17c54eec5bb5f111b1 1 parent 38d92d7
David Heinemeier Hansson dhh authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  railties/lib/rails/tasks/routes.rake
3  railties/lib/rails/tasks/routes.rake
@@ -16,7 +16,8 @@ task :routes => :environment do
16 16 {:name => route.name.to_s, :verb => route.verb.to_s, :path => route.path, :reqs => reqs}
17 17 end
18 18
19   - routes.reject! { |r| r[:path] =~ %r{/rails/info/properties} } # Skip the route if it's internal info route
  19 + # Skip the route if it's internal info route
  20 + routes.reject! { |r| r[:path] =~ %r{/rails/info/properties|/assets} }
20 21
21 22 name_width = routes.map{ |r| r[:name].length }.max
22 23 verb_width = routes.map{ |r| r[:verb].length }.max

0 comments on commit 9f06297

Please sign in to comment.
Something went wrong with that request. Please try again.