method

shallow_scope

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

            yield
          ensure
            @scope = @scope.parent
          end
Register or log in to add new notes.