diff options
author | Stan Hu <stanhu@gmail.com> | 2017-03-31 07:47:22 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-04-02 15:42:11 +0300 |
commit | 38a108cac9b95860eef261c01588c9c5a4c5db5c (patch) | |
tree | 2092886294150301ea8460eb75f43bffd77ee08e /app/controllers/groups/group_members_controller.rb | |
parent | 9fc17f6f4abdb04f3cf1b60b87bd67b894a19c39 (diff) |
Fix a few N+1 queries identified by Bullet
See !10263
Diffstat (limited to 'app/controllers/groups/group_members_controller.rb')
-rw-r--r-- | app/controllers/groups/group_members_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/groups/group_members_controller.rb b/app/controllers/groups/group_members_controller.rb index 0cbf3eb58a3..00c50f9d0ad 100644 --- a/app/controllers/groups/group_members_controller.rb +++ b/app/controllers/groups/group_members_controller.rb @@ -14,6 +14,7 @@ class Groups::GroupMembersController < Groups::ApplicationController @members = @members.search(params[:search]) if params[:search].present? @members = @members.sort(@sort) @members = @members.page(params[:page]).per(50) + @members.includes(:user) @requesters = AccessRequestsFinder.new(@group).execute(current_user) |