fixed answers not being deleted
This commit is contained in:
parent
a30e6509b5
commit
6471e3baa5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue