lib/mongo_mapper/extensions/string.rb in mongo_mapper-0.12.0 vs lib/mongo_mapper/extensions/string.rb in mongo_mapper-0.13.0.beta1

- old
+ new

@@ -1,14 +1,14 @@ # encoding: UTF-8 module MongoMapper module Extensions module String def to_mongo(value) - value.nil? ? nil : value.to_s + value && value.to_s end def from_mongo(value) - value.nil? ? nil : value.to_s + value && value.to_s end end end end \ No newline at end of file