instance method
with_exclusive_scope
Ruby on Rails 3.2.22.5
Since v3.0.20 Last seen in v4.2.9Signature
with_exclusive_scope()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1388
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
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 1388
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Resources