Sha256: fadfd346528702ac449329b93e4a19e40ec964ca2e8c043220ecb8bb7cf0f7b7
Contents?: true
Size: 535 Bytes
Versions: 4
Compression:
Stored size: 535 Bytes
Contents
class Picture < Document has_attached_file :file, :url => '/:class/:id.:extension', :path => ':rails_root/documents/:class/:id_partition/:style.: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
4 entries across 4 versions & 1 rubygems