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:
parent
763dd50a76
commit
41e7923cd4
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue