instance method
with_scope_level
Ruby on Rails 4.1.16
Since v3.0.20Signature
with_scope_level(kind)
No documentation comment.
Parameters
-
kindreq
Source
# 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
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 1598
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Resources