From 6be70374c865235faa4e1b730ec781b999a92db2 Mon Sep 17 00:00:00 2001 From: Georg G Date: Tue, 21 Apr 2015 16:53:59 +0200 Subject: [PATCH] fixes Retrospring/bugs#5 --- app/models/answer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/answer.rb b/app/models/answer.rb index 83b82918..d05e16a4 100644 --- a/app/models/answer.rb +++ b/app/models/answer.rb @@ -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