FIX: count distinct badges for totals.

This commit is contained in:
Sam 2014-07-16 16:21:46 +10:00
parent 823061a2cf
commit 59c399c50a
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ class User < ActiveRecord::Base
end end
def badge_count def badge_count
user_badges.count user_badges.select('distinct badge_id').count
end end
def featured_user_badges def featured_user_badges