Module: Mongoid::Extensions::Set

Defined in:
build/mongoid-7.3/lib/mongoid/extensions/set.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#mongoizeArray

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

Examples:

Mongoize the object.

set.mongoize

Returns:

  • (Array)

    The object mongoized.

Since:

  • 3.0.0



17
18
19
# File 'build/mongoid-7.3/lib/mongoid/extensions/set.rb', line 17

def mongoize
  ::Set.mongoize(self)
end