diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-23 12:15:16 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-23 12:15:16 +0000 |
commit | 026ed016d068a58b2e09422135b5b78bd11f2a2b (patch) | |
tree | f92969fad6045759b43855b7061ae85afa606dd1 /app/models/member.rb | |
parent | c4aa8e8d143532f574ba4a5eda774fa6038fefac (diff) | |
download | gitlab-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.rb | 9 |
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) |