From 778c1eaccbda433bc309e73b78930086703c605e Mon Sep 17 00:00:00 2001 From: nilsding Date: Sun, 14 Dec 2014 17:21:15 +0100 Subject: [PATCH] bugFuchs --- app/controllers/ajax/answer_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/ajax/answer_controller.rb b/app/controllers/ajax/answer_controller.rb index 61775889..4c19d1bd 100644 --- a/app/controllers/ajax/answer_controller.rb +++ b/app/controllers/ajax/answer_controller.rb @@ -16,6 +16,7 @@ class Ajax::AnswerController < ApplicationController if answer.user == current_user Inbox.create!(user: answer.user, question: answer.question, new: true) end # TODO: decide what happens with the question + Notification.denotify self.question.user, answer answer.destroy @status = :okay