summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLennart Rosam <lennart.rosam@medien-systempartner.de>2013-01-28 12:54:07 +0100
committerLennart Rosam <lennart.rosam@medien-systempartner.de>2013-01-28 12:54:07 +0100
commitdc13af90b12a2366f77a9b68a7b74d7b5f54bc1a (patch)
tree9eebab5b71662e6263b90be194744e355cc2be2f /lib
parentd9027df5b55f2eb82f1a71e96412c5e802909090 (diff)
downloadgitlab-ce-dc13af90b12a2366f77a9b68a7b74d7b5f54bc1a.tar.gz
Fix rake task - Update method name
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/gitlab/bulk_add_permission.rake6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tasks/gitlab/bulk_add_permission.rake b/lib/tasks/gitlab/bulk_add_permission.rake
index 36c51d060bc..54a5c7aea76 100644
--- a/lib/tasks/gitlab/bulk_add_permission.rake
+++ b/lib/tasks/gitlab/bulk_add_permission.rake
@@ -7,9 +7,9 @@ namespace :gitlab do
Project.find_each do |project|
puts "Importing #{user_ids.size} users into #{project.code}"
- UsersProject.bulk_import(project, user_ids, UsersProject::DEVELOPER)
+ UsersProject.add_users_into_projects(project, user_ids, UsersProject::DEVELOPER)
puts "Importing #{admin_ids.size} admins into #{project.code}"
- UsersProject.bulk_import(project, admin_ids, UsersProject::MASTER)
+ UsersProject.add_users_into_projects(project, admin_ids, UsersProject::MASTER)
end
end
@@ -18,7 +18,7 @@ namespace :gitlab do
user = User.find_by_email args.email
project_ids = Project.pluck(:id)
- UsersProject.user_bulk_import(user, project_ids, UsersProject::DEVELOPER)
+ UsersProject.add_users_into_projects(user, project_ids, UsersProject::DEVELOPER)
end
end
end \ No newline at end of file