class MongoModel::Types::Array

Public Instance Methods

to_mongo(array) click to toggle source
# File lib/mongomodel/support/types/array.rb, line 4
def to_mongo(array)
  array.map { |i| convert(i) } if array
end
to_query(value) click to toggle source
# File lib/mongomodel/support/types/array.rb, line 8
def to_query(value)
  convert(value)
end