This commit is contained in:
nilsding 2014-11-28 21:39:38 +01:00
parent 5b013314ed
commit 9728561a93
1 changed files with 0 additions and 4 deletions

View File

@ -2,10 +2,6 @@ class Ajax::AnswerController < ApplicationController
def destroy def destroy
params.require :answer params.require :answer
unless current_user.nil?
current_user.increment! :asked_count unless params[:anonymousQuestion] == 'true'
end
answer = Answer.find(params[:answer]) answer = Answer.find(params[:answer])
unless privileged? answer.user unless privileged? answer.user