method
using_match_shorthand?
v4.2.7 -
Show latest stable
- Class:
ActionDispatch::Routing::Mapper::Scoping::Resources
using_match_shorthand?(path, options)public
No documentation available.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1523
def using_match_shorthand?(path, options)
path && (options[:to] || options[:action]).nil? && path =~ %{^/?[-\w]+/[-\w/]+$}
end