closes github issue #15
This commit is contained in:
parent
778c1eaccb
commit
a961764a56
|
@ -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 New Issue