Sha256: bbf4b033c46d66bc049c0e827240d8ac26fbe7b51233bdec7d5f7c8a17fafc36
Contents?: true
Size: 474 Bytes
Versions: 1
Compression:
Stored size: 474 Bytes
Contents
= grip GridFS attachments for MongoMapper = installation The grip gem is hosted on gemcutter.org: * gem install grip = Usage class Foo include MongoMapper::Document include Grip has_grid_attachment :image has_grid_attachment :pdf end @image = File.open("#{File.dirname(__FILE__)}/test/cthulhu.png",'r') @pdf = File.open("#{File.dirname(__FILE__)}/sample.pdf",'r') @foo = Foo.create(:img=>@image,:pdf=>@pdf)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grip-0.4.0 | README.rdoc |