Sha256: ee27b1ef536e71326a1ab016a7361de8ab1dc8f81a5a99a877d64f1d8be204c1
Contents?: true
Size: 676 Bytes
Versions: 13
Compression:
Stored size: 676 Bytes
Contents
class Audio < Document has_attached_file :file, :url => '/:class/:id.:extension', :path => ':rails_root/documents/:class/:id_partition/:style.:extension', :styles => {:webma => {:format => 'webm'} },:processors => [:ffmpeg] process_in_background :file define_index do indexes title indexes file_file_name, :as => :file_name indexes description indexes activity_object.tags.name, :as => :tags has created_at end # Thumbnail file def thumb(size, helper) "#{ size.to_s }/audio.png" end end
Version data entries
13 entries across 13 versions & 2 rubygems