Module: Mongoid::Extensions::ObjectId

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

Overview

Adds type-casting behavior to BSON::ObjectId.

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#__evolve_object_id__BSON::ObjectId Also known as: __mongoize_object_id__

Evolve the object id.

Examples:

Evolve the object id.

object_id.__evolve_object_id__

Returns:

  • (BSON::ObjectId)

    self.



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

def __evolve_object_id__
  self
end