method

resource_scope

resource_scope(kind, resource)
protected

No documentation available.

# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1605
          def resource_scope(kind, resource) #:nodoc:
            resource.shallow = @scope[:shallow]
            old_resource, @scope[:scope_level_resource] = @scope[:scope_level_resource], resource
            @nesting.push(resource)

            with_scope_level(kind) do
              scope(parent_resource.resource_scope) { yield }
            end
          ensure
            @nesting.pop
            @scope[:scope_level_resource] = old_resource
          end