Method: Mongoid::Extensions::Array#__evolve_object_id__

Defined in:
lib/mongoid/extensions/array.rb

#__evolve_object_id__Array<Moped::BSON::ObjectId>

Evolve the array into an array of object ids.

Examples:

Evolve the array to object ids.

[ id ].__evolve_object_id__

Returns:

Since:

  • 3.0.0



14
15
16
17
# File 'lib/mongoid/extensions/array.rb', line 14

def __evolve_object_id__
  map!(&:__evolve_object_id__)
  self
end