instance method
shallow_nesting_depth
Ruby on Rails 8.0.4
Since v5.2.8.1 PrivateSignature
shallow_nesting_depth()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1859
def shallow_nesting_depth
@scope.find_all { |node|
node.frame[:scope_level_resource]
}.count { |node| node.frame[:scope_level_resource].shallow? }
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 1859
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Resources