提交 41e7923c 编写于 作者: A Aaron Patterson

path is never nil

上级 763dd50a
......@@ -1567,7 +1567,7 @@ def process_path(options, controller, path, option_path)
def using_match_shorthand?(path, to, action)
return false if to || action
path && path =~ %r{^/?[-\w]+/[-\w/]+$}
path =~ %r{^/?[-\w]+/[-\w/]+$}
end
def decomposed_match(path, controller, options, _path) # :nodoc:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册