BUGFIX: N+1 query when listing users in admin section

This commit is contained in:
Régis Hanol 2014-04-08 19:12:53 +02:00
parent 79c6bb718a
commit b328fd0031
1 changed files with 1 additions and 1 deletions

View File

@ -53,6 +53,6 @@ class AdminUserIndexQuery
end
def find_users
find_users_query.take(100)
find_users_query.includes(:user_stat).take(100)
end
end