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