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