Method: Mongoid::Atomic#atomic_array_add_to_sets

Defined in:
lib/mongoid/atomic.rb

#atomic_array_add_to_setsHash

For array fields these are the unique adds that need to happen.

Examples:

Get the array unique adds.

person.atomic_array_add_to_sets

Returns:

  • (Hash)

    The array add_to_sets.

Since:

  • 2.4.0



101
102
103
# File 'lib/mongoid/atomic.rb', line 101

def atomic_array_add_to_sets
  @atomic_array_add_to_sets ||= {}
end