summaryrefslogtreecommitdiff
path: root/app/models/member.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-12-23 12:15:16 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-12-23 12:15:16 +0000
commit026ed016d068a58b2e09422135b5b78bd11f2a2b (patch)
treef92969fad6045759b43855b7061ae85afa606dd1 /app/models/member.rb
parentc4aa8e8d143532f574ba4a5eda774fa6038fefac (diff)
downloadgitlab-ce-026ed016d068a58b2e09422135b5b78bd11f2a2b.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/member.rb')
-rw-r--r--app/models/member.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/app/models/member.rb b/app/models/member.rb
index 1e2df74fe47..3521223b27c 100644
--- a/app/models/member.rb
+++ b/app/models/member.rb
@@ -235,14 +235,7 @@ class Member < ApplicationRecord
end
def left_join_users
- users = User.arel_table
- members = Member.arel_table
-
- member_users = members.join(users, Arel::Nodes::OuterJoin)
- .on(members[:user_id].eq(users[:id]))
- .join_sources
-
- joins(member_users)
+ left_outer_joins(:user)
end
def access_for_user_ids(user_ids)