app/controllers/videos_controller.rb in social_stream-documents-0.1.6 vs app/controllers/videos_controller.rb in social_stream-documents-0.1.7
- old
+ new
@@ -1,7 +1,7 @@
-class VideosController < InheritedResources::Base
- load_and_authorize_resource
+class VideosController < CommonDocumentsController
+ respond_to :html,:js
def show
path = @video.file.path(params[:style])
if(params[:style].present?)
path = path.split('.')[0]+'.'+params[:style]
@@ -10,18 +10,6 @@
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
\ No newline at end of file
+end