This commit is contained in:
nilsding 2014-12-14 13:31:26 +01:00
parent 0ebf918d83
commit ec8e813546
1 changed files with 1 additions and 1 deletions

View File

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