Commit e4485d7b authored by Robert Speicher's avatar Robert Speicher

Use `public_send` over `send` in ProjectTeam

parent 2908f173
...@@ -202,8 +202,8 @@ class ProjectTeam ...@@ -202,8 +202,8 @@ class ProjectTeam
group_members = group ? group.members : [] group_members = group ? group.members : []
if level if level
project_members = project_members.send(level) project_members = project_members.public_send(level)
group_members = group_members.send(level) if group group_members = group_members.public_send(level) if group
end end
user_ids = project_members.pluck(:user_id) user_ids = project_members.pluck(:user_id)
...@@ -248,7 +248,7 @@ class ProjectTeam ...@@ -248,7 +248,7 @@ class ProjectTeam
invited_group_members = invited_group_members invited_group_members = invited_group_members
.where("access_level >= ?", link.group_access) .where("access_level >= ?", link.group_access)
else else
invited_group_members = invited_group_members.send(level) invited_group_members = invited_group_members.public_send(level)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment