Class Mongoid::Persistence::Atomic::Pop
In: lib/mongoid/persistence/atomic/pop.rb
Parent: Object

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

Methods

persist  

Included Modules

Operation

Public Instance methods

Sends the atomic $pop operation to the database.

@example Persist the new values.

  pop.persist

@return [ Object ] The new array value.

@since 2.1.0

[Validate]