Method: Mongoid::Extensions::Array#mongoize

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

#mongoizeArray

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

Examples:

Mongoize the object.

object.mongoize

Returns:

  • (Array)

    The object.

Since:

  • 3.0.0


89
90
91
# File 'lib/mongoid/extensions/array.rb', line 89

def mongoize
  ::Array.mongoize(self)
end