Sha256: 5a749236e2fe3390f1c2732654aa5d8bdfca5c88c7aa3b12eeb4710381fc9281
Contents?: true
Size: 734 Bytes
Versions: 1
Compression:
Stored size: 734 Bytes
Contents
class VideosController < InheritedResources::Base load_and_authorize_resource def show path = @video.file.path(params[:style]) if(params[:style].present?) path = path.split('.')[0]+'.'+params[:style] end respond_to do |format| format.all {send_file path, :type => @video.file_content_type, :disposition => "inline"} end end def index @document_activities = current_subject.wall(:profile, :for => current_subject, :object_type => :Video).page(params[:page]).per(params[:per]) end def destroy @post_activity = resource.post_activity destroy! end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
social_stream-documents-0.1.6 | app/controllers/videos_controller.rb |