instance method
shallow_nesting_depth
Ruby on Rails 6.0.6
Since v5.2.8.1 PrivateSignature
shallow_nesting_depth()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1758
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 1758
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Resources