Class: Array
Instance Method Summary collapse
-
#to_mongo_value ⇒ Object
Convert an Array to a Mongo value.
Instance Method Details
#to_mongo_value ⇒ Object
Convert an Array to a Mongo value. Used by MongoRecord::Base when saving data to Mongo.
32 33 34 |
# File 'lib/mongo_record/convert.rb', line 32 def to_mongo_value self.collect {|v| v.to_mongo_value} end |