method

resource_scope

Importance_0
v7.0.0 - Show latest stable - 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 1747
          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.