# File lib/action_dispatch/routing/mapper.rb, line 827 def collection_scope with_scope_level(:collection) do scope(parent_resource.collection_scope) do yield end end end