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