fixes #1263 for comments

This commit is contained in:
Toks
2013-06-29 14:50:22 -04:00
parent 9bffc081e4
commit badc3122f0
7 changed files with 60 additions and 17 deletions

View File

@@ -63,6 +63,13 @@ class CommentsController < ApplicationController
end
end
def unvote
@comment = Comment.find(params[:id])
@comment.unvote!
rescue CommentVote::Error => x
@error = x
end
private
def index_for_post
@post = Post.find(params[:post_id])