Permalink
Browse files

Hide internal apps from rake routes [#5443 state:resolved]

  • Loading branch information...
1 parent 2916521 commit edba51cf33fab379d7fd4cc01bd5755fb45c933d @josevalim josevalim committed Aug 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/tasks/routes.rake
@@ -17,7 +17,7 @@ task :routes => :environment do
name = named_routes.send(key, route).to_s
reqs = route.requirements.dup
- reqs[:to] = route.app unless route.app.is_a?(ActionDispatch::Routing::RouteSet::Dispatcher)
+ reqs[:to] = route.app unless route.app.class.name.to_s =~ /^ActionDispatch::Routing/
reqs = reqs.empty? ? "" : reqs.inspect
{:name => name, :verb => route.verb.to_s, :path => route.path, :reqs => reqs}

0 comments on commit edba51c

Please sign in to comment.