method

resource_scope

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Resources
resource_scope(resource, &block) 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 1781
          def resource_scope(resource, &block)
            @scope = @scope.new(scope_level_resource: resource)

            controller(resource.resource_scope, &block)
          ensure
            @scope = @scope.parent
          end
Register or log in to add new notes.