app/controllers/audios_controller.rb in social_stream-documents-0.3.3 vs app/controllers/audios_controller.rb in social_stream-documents-0.4.0

- old
+ new

@@ -1,16 +1,2 @@ class AudiosController < CommonDocumentsController - respond_to :html,:js - - def show - path = @audio.file.path(params[:style]) - if(params[:style].present?) && Document::STYLE_FORMAT[params[:style]] - path = path.split('.')[0]+'.'+Document::STYLE_FORMAT[params[:style]] - end - respond_to do |format| - format.all {send_file path, - :type => Document::STYLE_MIMETYPE[params[:style]], # CANT USE: @video.file_content_type because it is allways video/mp4 and breaks explorer and firefox - :disposition => "inline"} - end - end - end