提交 d21e0e2a 编写于 作者: A Aaron Patterson

adjust route inspection to work with Journey

上级 a08bee78
......@@ -23,7 +23,8 @@ def format all_routes, filter = nil
reqs = reqs.empty? ? constraints.inspect : "#{reqs} #{constraints.inspect}"
end
{:name => route.name.to_s, :verb => route.verb.to_s, :path => route.path, :reqs => reqs}
verb = route.verb.source.gsub(/[$^]/, '')
{:name => route.name.to_s, :verb => verb, :path => route.path.spec.to_s, :reqs => reqs}
end
# Skip the route if it's internal info route
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册