instance method
shallow
Ruby on Rails 7.2.3
Since v3.0.20Signature
shallow()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1624
def shallow
@scope = @scope.new(shallow: true)
yield
ensure
@scope = @scope.parent
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 1624
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Resources