fixes #2700: Unvote Missing Template Exception
This commit is contained in:
@@ -8,6 +8,13 @@ class PostVotesController < ApplicationController
|
||||
@error = x
|
||||
end
|
||||
|
||||
def destroy
|
||||
@post = Post.find(params[:post_id])
|
||||
@post.unvote!
|
||||
rescue PostVote::Error => x
|
||||
@error = x
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def voter_only
|
||||
|
||||
Reference in New Issue
Block a user