method
with_scope_level
v4.1.8 -
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 1598
def with_scope_level(kind)
old, @scope[:scope_level] = @scope[:scope_level], kind
yield
ensure
@scope[:scope_level] = old
end