method
with_scope_level
v4.2.7 -
Show latest stable
- Class:
ActionDispatch::Routing::Mapper::Scoping::Resources
with_scope_level(kind)protected
No documentation available.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1664
def with_scope_level(kind)
@scope = @scope.new_level(kind)
yield
ensure
@scope = @scope.parent
end