method

shallow_scope

shallow_scope()
protected

No documentation available.

# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1841
          def shallow_scope #:nodoc:
            scope = { :as   => @scope[:shallow_prefix],
                      :path => @scope[:shallow_path] }
            @scope = @scope.new scope

            yield
          ensure
            @scope = @scope.parent
          end