module Mongoid::Atomic::Paths::Embedded
Common functionality between the two different embedded paths.
Attributes
Public Instance Methods
Source
# File lib/mongoid/atomic/paths/embedded.rb, line 24 def path @path ||= position.sub(/\.\d+\z/, "") end
Get the path to the document in the hierarchy.
@example Get the path.
many.path
@return [ String ] The path to the document.
@since 2.1.0