mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-21 10:17:48 +01:00
Merge branch 'master' of git.rrerr.net:justask/justask
This commit is contained in:
commit
84493a8a74
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ class Ajax::AnswerController < ApplicationController
|
||||||
if answer.user == current_user
|
if answer.user == current_user
|
||||||
Inbox.create!(user: answer.user, question: answer.question, new: true)
|
Inbox.create!(user: answer.user, question: answer.question, new: true)
|
||||||
end # TODO: decide what happens with the question
|
end # TODO: decide what happens with the question
|
||||||
|
Notification.denotify self.question.user, answer
|
||||||
answer.destroy
|
answer.destroy
|
||||||
|
|
||||||
@status = :okay
|
@status = :okay
|
||||||
|
|
Loading…
Reference in a new issue