method
nested_options
v3.1.0 -
Show latest stable
- Class:
ActionDispatch::Routing::Mapper::Resources
nested_options()protected
No documentation available.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1391
def nested_options #:nodoc:
{}.tap do |options|
options[:as] = parent_resource.member_name
options[:constraints] = { "#{parent_resource.singular}_id".to_sym => id_constraint } if id_constraint?
end
end