summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-09-21 14:53:02 +0300
committerRobert Speicher <rspeicher@gmail.com>2016-09-21 14:53:02 +0300
commite4485d7b688e24eb9a9db5b2af0b6372892822da (patch)
tree6d568a1ec76919d8eac37f3b3816748d45b151ab
parent2908f17371802d570014181033f16f2f3ffd182c (diff)
downloadgitlab-ce-e4485d7b688e24eb9a9db5b2af0b6372892822da.tar.gz
Use `public_send` over `send` in ProjectTeam
-rw-r--r--app/models/project_team.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/project_team.rb b/app/models/project_team.rb
index ca331e7645a..3cb11fee07f 100644
--- a/app/models/project_team.rb
+++ b/app/models/project_team.rb
@@ -202,8 +202,8 @@ class ProjectTeam
group_members = group ? group.members : []
if level
- project_members = project_members.send(level)
- group_members = group_members.send(level) if group
+ project_members = project_members.public_send(level)
+ group_members = group_members.public_send(level) if group
end
user_ids = project_members.pluck(:user_id)
@@ -248,7 +248,7 @@ class ProjectTeam
invited_group_members = invited_group_members
.where("access_level >= ?", link.group_access)
else
- invited_group_members = invited_group_members.send(level)
+ invited_group_members = invited_group_members.public_send(level)
end
end