Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-04-21 17:07:42 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-04-21 18:38:10 +0300
commitc6960ded8acc5f01a3b00aea2e1c1de6e6981af9 (patch)
tree361ac6653ad005e74d618d128911300202e10e44 /app/models/project_team.rb
parentc76812c79ffe3ca35b00faeaaf7fa1c362d1d27d (diff)
Refactor add_users method for project and group
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/models/project_team.rb')
-rw-r--r--app/models/project_team.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project_team.rb b/app/models/project_team.rb
index 6d6644053f8..543b9b293e0 100644
--- a/app/models/project_team.rb
+++ b/app/models/project_team.rb
@@ -50,8 +50,8 @@ class ProjectTeam
end
def add_users(users, access_level, current_user: nil, expires_at: nil)
- ProjectMember.add_users_to_projects(
- [project.id],
+ ProjectMember.add_users(
+ project,
users,
access_level,
current_user: current_user,