module Mongoid::Extensions::Set

Public Instance Methods

mongoize() click to toggle source

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

@example Mongoize the object.

set.mongoize

@return [ Array ] The object mongoized.

@since 3.0.0

# File lib/mongoid/extensions/set.rb, line 17
def mongoize
  ::Set.mongoize(self)
end