diff options
author | José Valim <jose.valim@gmail.com> | 2010-08-24 13:22:34 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-08-24 13:22:48 -0300 |
commit | edba51cf33fab379d7fd4cc01bd5755fb45c933d (patch) | |
tree | adb6d9bf04c8f34dbd524339e8ba907175de5f20 /railties/lib/rails/tasks/routes.rake | |
parent | 2916521da825d5a0b93eb1cb86f12946e9345e29 (diff) | |
download | rails-edba51cf33fab379d7fd4cc01bd5755fb45c933d.tar.gz rails-edba51cf33fab379d7fd4cc01bd5755fb45c933d.tar.bz2 rails-edba51cf33fab379d7fd4cc01bd5755fb45c933d.zip |
Hide internal apps from rake routes [#5443 state:resolved]
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 c0a2fe38bd..65cf79a0a2 100644 --- a/railties/lib/rails/tasks/routes.rake +++ b/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} |