Flowdock
method

resource_scope

Importance_0
v4.2.1 - 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 1670
          def resource_scope(kind, resource) #:nodoc:
            resource.shallow = @scope[:shallow]
            @scope = @scope.new(:scope_level_resource => resource)
            @nesting.push(resource)

            with_scope_level(kind) do
              scope(parent_resource.resource_scope) { yield }
            end
          ensure
            @nesting.pop
            @scope = @scope.parent
          end
Register or log in to add new notes.