Sha256: f4de85ef4df961a5c8a43da7a8813447e53c5a795ca5884928bae0e589db34d1
Contents?: true
Size: 530 Bytes
Versions: 2
Compression:
Stored size: 530 Bytes
Contents
class AudiosController < InheritedResources::Base load_and_authorize_resource def show path = @audio.file.path(params[:style]) respond_to do |format| format.all {send_file path, :type => @audio.file_content_type, :disposition => "inline"} end end def index @document_activities = current_subject.wall(:profile, :for => current_subject, :object_type => :Audio).all; end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
social_stream-documents-0.1.1 | app/controllers/audios_controller.rb |
social_stream-documents-0.1.0 | app/controllers/audios_controller.rb |