Method: Mongoid::Extensions::Object#mongoize

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

#mongoizeObject

Turn the object from the ruby type we deal with to a Mongo friendly type.

Examples:

Mongoize the object.

object.mongoize

Returns:

Since:

  • 3.0.0



135
136
137
# File 'lib/mongoid/extensions/object.rb', line 135

def mongoize
  self
end