提交 f1349ec1 编写于 作者: R Rafael França 提交者: GitHub

Merge pull request #26156 from sfaxon/route_visualizer_fix

fix Rails.application.routes.router.visualizer for router debugging
......@@ -72,7 +72,9 @@ def visualizer
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册