Sha256: 85dec8b217e10567983c605b0d3735329da2240edf4e471193b4bfac9edbc848
Contents?: true
Size: 934 Bytes
Versions: 23
Compression:
Stored size: 934 Bytes
Contents
class Video < Document has_attached_file :file, :url => '/:class/:id.:extension', :path => ':rails_root/documents/:class/:id_partition/:style', :styles => { :webm => {:format => 'webm'}, :flv => { :format => 'flv' }, :thumb48sq => {:geometry => "48x48" , :format => 'png', :time => 5}, :thumbwall => {:geometry => "130x97#", :format => 'png', :time => 5} }, :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 }/video.png" end end
Version data entries
23 entries across 23 versions & 2 rubygems