Sha256: 90a672023b07b826ccd54ad67076fcc3be663cf00e1bb269840c17e923017fe2

Contents?: true

Size: 562 Bytes

Versions: 25

Compression:

Stored size: 562 Bytes

Contents

class Audio < Document  
  has_attached_file :file, 
                    :url => '/:class/:id.:content_type_extension',
                    :path => ':rails_root/documents/:class/:id_partition/:style',
                    :styles => SocialStream::Documents.audio_styles,
                    :processors => [ :ffmpeg ]
  
  process_in_background :file    
  
  define_index do
    activity_object_index

    indexes file_file_name, :as => :file_name
  end 
              
  # Thumbnail file
  def thumb(size, helper)
      "#{ size.to_s }/audio.png"
  end
  
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
social_stream-1.1.12 documents/app/models/audio.rb
social_stream-documents-1.1.4 app/models/audio.rb
social_stream-1.1.11 documents/app/models/audio.rb
social_stream-documents-1.1.3 app/models/audio.rb
social_stream-1.1.10 documents/app/models/audio.rb
social_stream-documents-1.1.2 app/models/audio.rb
social_stream-1.1.9 documents/app/models/audio.rb
social_stream-1.1.8 documents/app/models/audio.rb
social_stream-1.1.7 documents/app/models/audio.rb
social_stream-1.1.6 documents/app/models/audio.rb
social_stream-1.1.5 documents/app/models/audio.rb
social_stream-1.1.4 documents/app/models/audio.rb
social_stream-documents-1.1.1 app/models/audio.rb
social_stream-1.1.3 documents/app/models/audio.rb
social_stream-1.1.2 documents/app/models/audio.rb
social_stream-1.1.1 documents/app/models/audio.rb
social_stream-1.1.0 documents/app/models/audio.rb
social_stream-documents-1.1.0 app/models/audio.rb
social_stream-1.0.1 documents/app/models/audio.rb
social_stream-documents-1.0.0 app/models/audio.rb