Sha256: b7c4c32243e37524b4caa2da132c8d7ede6aa8311d97dcc885cc21eb296d3dca
Contents?: true
Size: 545 Bytes
Versions: 1
Compression:
Stored size: 545 Bytes
Contents
class Picture < Document has_attached_file :file, :url => '/:class/:id.:extension', :path => ':rails_root/documents/:class/:id_partition/:style_:basename.:extension', :styles => {:thumb => ["48x48#"], :thumb0 => ["130x80#"] } def thumb helper "formats/photo.png" end def big_thumb helper helper.picture_path self, :format => format, :style => 'thumb' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
social_stream-documents-0.1.6 | app/models/picture.rb |