method
with_exclusive_scope
v3.2.1 -
Show latest stable
- Class:
ActionDispatch::Routing::Mapper::Resources
with_exclusive_scope()protected
No documentation available.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1375
def with_exclusive_scope
begin
old_name_prefix, old_path = @scope[:as], @scope[:path]
@scope[:as], @scope[:path] = nil, nil
with_scope_level(:exclusive) do
yield
end
ensure
@scope[:as], @scope[:path] = old_name_prefix, old_path
end
end