Method: Mongoid::Atomic#atomic_path

Defined in:
lib/mongoid/atomic.rb

#atomic_pathString

Return the path to this Document in JSON notation, used for atomic updates via $set in MongoDB.

Examples:

Get the path to this document.

address.atomic_path

Returns:

  • (String)

    The path to the document in the database.



140
141
142
# File 'lib/mongoid/atomic.rb', line 140

def atomic_path
  atomic_paths.path
end