Method: Mongoid::Atomic#atomic_delete_modifier

Defined in:
lib/mongoid/atomic.rb

#atomic_delete_modifierString

Get the removal modifier for the document. Will be nil on root documents, $unset on embeds_one, $set on embeds_many.

Examples:

Get the removal operator.

name.atomic_delete_modifier

Returns:

  • (String)

    The pull or unset operation.



147
148
149
# File 'lib/mongoid/atomic.rb', line 147

def atomic_delete_modifier
  atomic_paths.delete_modifier
end