Skip to content

Commit

Permalink
Dont show the assets mount in rake routes
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed May 5, 2011
1 parent 38d92d7 commit 9f06297
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion railties/lib/rails/tasks/routes.rake
Expand Up @@ -16,7 +16,8 @@ task :routes => :environment do
{:name => route.name.to_s, :verb => route.verb.to_s, :path => route.path, :reqs => reqs} {:name => route.name.to_s, :verb => route.verb.to_s, :path => route.path, :reqs => reqs}
end 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 name_width = routes.map{ |r| r[:name].length }.max
verb_width = routes.map{ |r| r[:verb].length }.max verb_width = routes.map{ |r| r[:verb].length }.max
Expand Down

0 comments on commit 9f06297

Please sign in to comment.