Flowdock
method

with_scope_level

Importance_0
v3.2.1 - 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 1388
          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.