Module: Mongoid::Extensions::ObjectId::ClassMethods
- Defined in:
- lib/mongoid/extensions/object_id.rb
Instance Method Summary (collapse)
-
- (Moped::BSON::ObjectId) evolve(object)
Evolve the object into a mongo-friendly value to query with.
-
- (Moped::BSON::ObjectId) mongoize(object)
Convert the object into a mongo-friendly value to store.
Instance Method Details
- (Moped::BSON::ObjectId) evolve(object)
Evolve the object into a mongo-friendly value to query with.
30 31 32 |
# File 'lib/mongoid/extensions/object_id.rb', line 30 def evolve(object) object.__evolve_object_id__ end |
- (Moped::BSON::ObjectId) mongoize(object)
Convert the object into a mongo-friendly value to store.
44 45 46 |
# File 'lib/mongoid/extensions/object_id.rb', line 44 def mongoize(object) evolve(object) end |