method

shallow_scope

Importance_0
v4.2.7 - Show latest stable - 0 notes - Class: Resources
shallow_scope(path, options = {}) 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 1713
          def shallow_scope(path, options = {}) #:nodoc:
            scope = { :as   => @scope[:shallow_prefix],
                      :path => @scope[:shallow_path] }
            @scope = @scope.new scope

            scope(path, options) { yield }
          ensure
            @scope = @scope.parent
          end
Register or log in to add new notes.