Sha256: a91ee19f7875d9463a264ee2903a2909986d464678d1a0e36bd0b90d801d0138

Contents?: true

Size: 697 Bytes

Versions: 22

Compression:

Stored size: 697 Bytes

Contents

class Audio < Document  
  has_attached_file :file, 
                    :url => '/:class/:id.:extension',
                    :path => ':rails_root/documents/:class/:id_partition/:style',
                    :styles => {:webma => {:format => 'webm'}                                
                    },:processors => [:ffmpeg]
  
  process_in_background :file    
  
  define_index do
    indexes activity_object.title
    indexes file_file_name, :as => :file_name
    indexes activity_object.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

22 entries across 22 versions & 2 rubygems

Version Path
social_stream-0.25.2 documents/app/models/audio.rb
social_stream-documents-0.13.2 app/models/audio.rb
social_stream-0.25.1 documents/app/models/audio.rb
social_stream-documents-0.13.1 app/models/audio.rb
social_stream-0.25.0 documents/app/models/audio.rb
social_stream-documents-0.13.0 app/models/audio.rb
social_stream-0.24.1 documents/app/models/audio.rb
social_stream-documents-0.12.1 app/models/audio.rb
social_stream-0.24.0 documents/app/models/audio.rb
social_stream-documents-0.12.0 app/models/audio.rb
social_stream-0.23.4 documents/app/models/audio.rb
social_stream-0.23.3 documents/app/models/audio.rb
social_stream-documents-0.11.5 app/models/audio.rb
social_stream-0.23.2 documents/app/models/audio.rb
social_stream-documents-0.11.4 app/models/audio.rb
social_stream-0.23.1 documents/app/models/audio.rb
social_stream-documents-0.11.3 app/models/audio.rb
social_stream-0.22.1 documents/app/models/audio.rb
social_stream-documents-0.11.2 app/models/audio.rb
social_stream-0.22.0 documents/app/models/audio.rb