closes github issue #15

This commit is contained in:
nilsding 2014-12-14 17:32:31 +01:00
parent 778c1eaccb
commit a961764a56
1 changed files with 1 additions and 1 deletions

View File

@ -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