instance method
using_match_shorthand?
Ruby on Rails 6.0.6
Since v3.2.22.5 PrivateSignature
using_match_shorthand?(path)
No documentation comment.
Parameters
-
pathreq
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1913
def using_match_shorthand?(path)
path =~ %r{^/?[-\w]+/[-\w/]+$}
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 1913
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Resources