instance method
shallow_scope
Ruby on Rails 8.1.2
Since v5.2.8.1 PrivateSignature
shallow_scope()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 2045
def shallow_scope
@scope = @scope.new(
as: @scope[:shallow_prefix],
path: @scope[:shallow_path],
)
yield
ensure
@scope = @scope.parent
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 2045
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Resources