instance method
param_constraint?
Ruby on Rails 6.1.7.10
Since v5.2.8.1 PrivateSignature
param_constraint?()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1794
def param_constraint?
@scope[:constraints] && @scope[:constraints][parent_resource.param].is_a?(Regexp)
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 1794
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Resources