Sha256: db1155fd4022c971efae6b9da0c141c248cce28a19fecf4bff1659a06c75c9e1
Contents?: true
Size: 265 Bytes
Versions: 18
Compression:
Stored size: 265 Bytes
Contents
class ImageField include Mongoid::Fields::Serializable def deserialize(object) Image.find(object).file end def serialize(object) if object.class == BSON::ObjectId return object else return BSON::ObjectId(object) end end end
Version data entries
18 entries across 18 versions & 1 rubygems