From 41e7923cd4d27887d6abb7ace272ea0c6d6b65b1 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 11 Aug 2015 14:50:15 -0700 Subject: path is never nil --- actionpack/lib/action_dispatch/routing/mapper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_dispatch/routing') 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: -- cgit v1.2.3