instance method
using_match_shorthand?
Ruby on Rails 6.1.7.10
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 1943
def using_match_shorthand?(path)
%r{^/?[-\w]+/[-\w/]+$}.match?(path)
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 1943
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Resources