method

with_scope_level

Importance_0
v3.0.0 - Show latest stable - 0 notes - Class: ActionDispatch::Routing::Mapper::Resources
with_scope_level(kind, resource = parent_resource) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 802
          def with_scope_level(kind, resource = parent_resource)
            old, @scope[:scope_level] = @scope[:scope_level], kind
            old_resource, @scope[:scope_level_resource] = @scope[:scope_level_resource], resource
            yield
          ensure
            @scope[:scope_level] = old
            @scope[:scope_level_resource] = old_resource
          end
Register or log in to add new notes.