method

resource_scope

Importance_0
v4.1.8 - Show latest stable - 0 notes - Class: Resources
resource_scope(kind, resource) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.