Module: Mongoid::Extensions::ObjectId::ClassMethods
- Defined in:
- lib/mongoid/extensions/object_id.rb
Instance Method Summary collapse
-
#evolve(object) ⇒ BSON::ObjectId
Evolve the object into a mongo-friendly value to query with.
-
#mongoize(object) ⇒ BSON::ObjectId
Convert the object into a mongo-friendly value to store.
Instance Method Details
#evolve(object) ⇒ BSON::ObjectId
Evolve the object into a mongo-friendly value to query with.
28 29 30 |
# File 'lib/mongoid/extensions/object_id.rb', line 28 def evolve(object) object.__evolve_object_id__ end |
#mongoize(object) ⇒ BSON::ObjectId
Convert the object into a mongo-friendly value to store.
40 41 42 |
# File 'lib/mongoid/extensions/object_id.rb', line 40 def mongoize(object) object.__mongoize_object_id__ end |