mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 18:19:52 +01:00
fixes Retrospring/bugs#5
This commit is contained in:
parent
1db856c0fe
commit
6be70374c8
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ class Answer < ActiveRecord::Base
|
|||
|
||||
Notification.notify self.question.user, self unless self.question.author_is_anonymous
|
||||
Subscription.subscribe self.user, self
|
||||
Subscription.subscribe self.question.user, self
|
||||
Subscription.subscribe self.question.user, self unless self.question.user.nil?
|
||||
self.user.increment! :answered_count
|
||||
self.question.increment! :answer_count
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue