From cc6fd9eb2aaa696a449016d5e300e26d41746e5a Mon Sep 17 00:00:00 2001 From: Micha Wrobel Date: Fri, 2 Mar 2012 21:50:19 +0100 Subject: [PATCH] Remove posibility to update comment --- app/controllers/comments_controller.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index 08e8513..db6b1dd 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -18,10 +18,7 @@ class CommentsController < ApplicationController respond_with @comment end - def update - respond_with Comment.update(params[:id], params[:comment]) - end - + #TODO Add Authorization def destroy respond_with Comment.destroy(params[:id]) end