summaryrefslogtreecommitdiff
path: root/app/models/project_team.rb
diff options
context:
space:
mode:
authorHerminio Torres <herminiocesar@gmail.com>2016-08-04 01:35:17 -0300
committerHerminio Torres <herminiocesar@gmail.com>2016-08-04 08:55:50 -0300
commitf15ed5f0a5c298a2f0eb5aaa6d848364133532a5 (patch)
tree112247869b8fedf93d717313b6398c82cc093abd /app/models/project_team.rb
parentf4c79d6a84defb6ffae7d29a5c9a81fbc413f16c (diff)
downloadgitlab-ce-f15ed5f0a5c298a2f0eb5aaa6d848364133532a5.tar.gz
Fix Rename `add_users_into_project` and `projects_ids`
We never add things `into` projects, we just add them `to` projects. So how about we rename this to `add_users_to_project`. Rename `projects_ids` to `project_ids` by following the convention of rails.
Diffstat (limited to 'app/models/project_team.rb')
-rw-r--r--app/models/project_team.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_team.rb b/app/models/project_team.rb
index 19fd082534c..d0a714cd6fc 100644
--- a/app/models/project_team.rb
+++ b/app/models/project_team.rb
@@ -34,7 +34,7 @@ class ProjectTeam
end
def add_users(users, access, current_user = nil)
- ProjectMember.add_users_into_projects(
+ ProjectMember.add_users_to_projects(
[project.id],
users,
access,