method

resource_scope

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: Resources
resource_scope(resource) private

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 1718
          def resource_scope(resource)
            @scope = @scope.new(scope_level_resource: resource)

            controller(resource.resource_scope) { yield }
          ensure
            @scope = @scope.parent
          end
Register or log in to add new notes.