diff --git a/app/controllers/ajax/answer_controller.rb b/app/controllers/ajax/answer_controller.rb index 4c19d1bd..2ccf1797 100644 --- a/app/controllers/ajax/answer_controller.rb +++ b/app/controllers/ajax/answer_controller.rb @@ -16,7 +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 + Notification.denotify answer.question.user, answer answer.destroy @status = :okay