class Mongoid::Persistence::Atomic::PushAll
Replace usage of $pushAll with $push + $each
Public Instance Methods
operation(modifier)
click to toggle source
# File lib/patches/atomic.rb, line 130 def operation(modifier) { modifier => { path => { "$each" => Array.wrap(value) } } } end
persist()
click to toggle source
# File lib/patches/atomic.rb, line 126 def persist append_with("$push") end