Sha256: 66292ec5e071cf117e51e99b511ef71405d1ba6605891542e9edc19ce3d3b545
Contents?: true
Size: 484 Bytes
Versions: 65
Compression:
Stored size: 484 Bytes
Contents
# encoding: UTF-8 module MongoMapper module Extensions module Object module ClassMethods def to_mongo(value) value end def from_mongo(value) value end end module InstanceMethods def to_mongo self.class.to_mongo(self) end end end end end class Object extend MongoMapper::Extensions::Object::ClassMethods include MongoMapper::Extensions::Object::InstanceMethods end
Version data entries
65 entries across 65 versions & 7 rubygems