提交 cadecac5 编写于 作者: S Seth Faxon

fix Rails.application.routes.router.visualizer for router debugging

fixes error due to Routes#partitioned_routes being removed
上级 6107a40c
......@@ -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.
先完成此消息的编辑!
想要评论请 注册