This commit is contained in:
nilsding 2014-12-14 17:21:15 +01:00
parent 689c2f852c
commit 778c1eaccb
1 changed files with 1 additions and 0 deletions

View File

@ -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