1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

path is never nil

This commit is contained in:
Aaron Patterson 2015-08-11 14:50:15 -07:00
parent 763dd50a76
commit 41e7923cd4

View file

@ -1567,7 +1567,7 @@ module ActionDispatch
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: