Class: Mongoid::Persistence::Atomic::PushAll
- Inherits:
-
Object
- Object
- Mongoid::Persistence::Atomic::PushAll
- Includes:
- Operation
- Defined in:
- lib/mongoid/persistence/atomic/push_all.rb
Overview
This class provides the ability to perform an explicit $pushAll modification on a specific field.
Instance Attribute Summary
Attributes included from Operation
#document, #fields, #options, #value
Instance Method Summary collapse
-
#persist ⇒ Object
Sends the atomic $pushAll operation to the database.
Methods included from Operation
#collection, #initialize, #operation, #path, #prepare
Methods included from Atomic::Positionable
Instance Method Details
#persist ⇒ Object
Sends the atomic $pushAll operation to the database.
19 20 21 |
# File 'lib/mongoid/persistence/atomic/push_all.rb', line 19 def persist append_with("$pushAll") end |