diff options
author | Jamison Dance <jergason@gmail.com> | 2010-08-26 21:20:22 -0600 |
---|---|---|
committer | Jamison Dance <jergason@gmail.com> | 2010-08-26 21:20:22 -0600 |
commit | 6398eba2400af004d9db19217f9d43ea7a33d877 (patch) | |
tree | f9f0755bbf42a2a86eff5a6b4d9bb46902745bee /railties/lib/rails/tasks/routes.rake | |
parent | 4d8158d9e5ada4aff5dc62712b7c4730b60cde48 (diff) | |
parent | 6eed7b36a2ec6f94d9ac3f254b05697649b78881 (diff) | |
download | rails-6398eba2400af004d9db19217f9d43ea7a33d877.tar.gz rails-6398eba2400af004d9db19217f9d43ea7a33d877.tar.bz2 rails-6398eba2400af004d9db19217f9d43ea7a33d877.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'railties/lib/rails/tasks/routes.rake')
-rw-r--r-- | railties/lib/rails/tasks/routes.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/tasks/routes.rake b/railties/lib/rails/tasks/routes.rake index 65cf79a0a2..306c88c261 100644 --- a/railties/lib/rails/tasks/routes.rake +++ b/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 |