FIX: Don't limit the count of badges to 96

This commit is contained in:
Sam Saffron 2016-03-05 10:57:32 +11:00
parent 05f0db0a20
commit a656a672a1
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ class UserBadgesController < ApplicationController
if params[:username]
user_id = User.where(username_lower: params[:username].downcase).pluck(:id).first
user_badges = user_badges.where(user_id: user_id) if user_id
grant_count = user_badges.count
grant_count = badge.user_badges.where(user_id: user_id).count
end
if offset = params[:offset]