diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-08-16 05:16:08 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-16 05:16:08 -0300 |
commit | f1349ec1faf7c3e6f82d29b6e9c652f1fcc41467 (patch) | |
tree | 39215bb7729b58809a6423d8229ca6f4a4575134 /actionpack | |
parent | 426ea715fd7522653c131076bd321e4caab40e8e (diff) | |
parent | cadecac53dc38ce1a3dfe5713e69fe706ae53fcd (diff) | |
download | rails-f1349ec1faf7c3e6f82d29b6e9c652f1fcc41467.tar.gz rails-f1349ec1faf7c3e6f82d29b6e9c652f1fcc41467.tar.bz2 rails-f1349ec1faf7c3e6f82d29b6e9c652f1fcc41467.zip |
Merge pull request #26156 from sfaxon/route_visualizer_fix
fix Rails.application.routes.router.visualizer for router debugging
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/journey/router.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/journey/router.rb b/actionpack/lib/action_dispatch/journey/router.rb index caa7a3ff51..d0ef549335 100644 --- a/actionpack/lib/action_dispatch/journey/router.rb +++ b/actionpack/lib/action_dispatch/journey/router.rb @@ -72,7 +72,9 @@ module ActionDispatch private def partitioned_routes - routes.partitioned_routes + routes.partition { |r| + r.path.anchored && r.ast.grep(Nodes::Symbol).all? { |n| n.default_regexp? } + } end def ast |