Sha256: be501d38886c4ac47fac3e7276929f00fb8a02c174d730e61b6fc6d6fc83c343
Contents?: true
Size: 551 Bytes
Versions: 4
Compression:
Stored size: 551 Bytes
Contents
class Audio < Document after_save :audioprocess has_attached_file :file, :url => '/:class/:id.:extension', :path => ':rails_root/documents/:class/:id_partition/:style.:extension', :styles => {:webma => {:format => 'webm'} },:processors => [:ffmpeg] def audioprocess Resque.enqueue(Audioencoder, self.id) end # Thumbnail file def thumb(size, helper) "#{ size.to_s }/audio.png" end end
Version data entries
4 entries across 4 versions & 2 rubygems