Method: Mongoid::Extensions::Array#__evolve_object_id__

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

#__evolve_object_id__Array<BSON::ObjectId>

Evolve the array into an array of object ids.

Examples:

Evolve the array to object ids.

[ id ].__evolve_object_id__

Returns:

  • (Array<BSON::ObjectId>)

    The converted array.



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

def __evolve_object_id__
  map!(&:__evolve_object_id__)
  self
end