123456789_123456789_123456789_123456789_123456789_

Module: Mongoid::Extensions::ObjectId

Relationships & Source Files
Namespace Children
Modules:
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/mongoid/extensions/object_id.rb

Overview

Adds type-casting behavior to ::BSON::ObjectId.

Instance Method Summary

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:

[ GitHub ]

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

def __evolve_object_id__
  self
end

#__mongoize_object_id__

Alias for Mongoid::Extensions::ObjectId#evolve_object_id.

[ GitHub ]

  
# File 'lib/mongoid/extensions/object_id.rb', line 19

alias :__mongoize_object_id__ :__evolve_object_id__