Class Mongoid::Persistence::Atomic::Push
In: lib/mongoid/persistence/atomic/push.rb
Parent: Object

This class provides the ability to perform an explicit $push modification on a specific field.

Methods

persist  

Included Modules

Operation

Public Instance methods

Sends the atomic $push operation to the database.

@example Persist the new values.

  push.persist

@return [ Object ] The new array value.

@since 2.0.0

[Validate]