method

shallow_scope

shallow_scope(path, options = {})
protected

No documentation available.

# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1647
          def shallow_scope(path, options = {}) #:nodoc:
            old_name_prefix, old_path = @scope[:as], @scope[:path]
            @scope[:as], @scope[:path] = @scope[:shallow_prefix], @scope[:shallow_path]

            scope(path, options) { yield }
          ensure
            @scope[:as], @scope[:path] = old_name_prefix, old_path
          end