mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix Rails.application.routes.router.visualizer for router debugging
fixes error due to Routes#partitioned_routes being removed
This commit is contained in:
parent
6107a40c0e
commit
cadecac53d
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue