method
resource_scope
resource_scope(resource)
private
Hide source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1742 def resource_scope(resource) @scope = @scope.new(scope_level_resource: resource) controller(resource.resource_scope) { yield } ensure @scope = @scope.parent end