From ec8e813546d3bed58956c9bc75face1f8ba93957 Mon Sep 17 00:00:00 2001 From: nilsding Date: Sun, 14 Dec 2014 13:31:26 +0100 Subject: [PATCH] bugfix --- app/models/question.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/question.rb b/app/models/question.rb index 0408a02b..740d59d6 100644 --- a/app/models/question.rb +++ b/app/models/question.rb @@ -7,7 +7,7 @@ class Question < ActiveRecord::Base def can_be_removed? return false if self.answers.count > 0 return false if Inbox.where(question: self).count > 1 - self.user.decrement! :asked_count + self.user.decrement! :asked_count unless self.author_is_anonymous true end end