diff options
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/mapper.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index abef307f3c..7361a6374d 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -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: |