FIX: count distinct badges for totals.
This commit is contained in:
parent
823061a2cf
commit
59c399c50a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue