mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 15:09:07 +01:00
closes github issue #15
This commit is contained in:
parent
778c1eaccb
commit
a961764a56
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ class Inbox < ActiveRecord::Base
|
|||
answer = Answer.create!(content: answer,
|
||||
user: user,
|
||||
question: self.question)
|
||||
Notification.notify self.question.user, answer
|
||||
Notification.notify self.question.user, answer unless self.question.author_is_anonymous
|
||||
user.increment! :answered_count
|
||||
self.question.increment! :answer_count
|
||||
self.destroy
|
||||
|
|
Loading…
Reference in a new issue