Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
3adf35fb
Commit
3adf35fb
authored
Dec 17, 2013
by
skv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pluck user_ids during team import
parent
26c8b316
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
app/models/project_team.rb
app/models/project_team.rb
+1
-2
No files found.
app/models/project_team.rb
View file @
3adf35fb
...
...
@@ -88,8 +88,7 @@ class ProjectTeam
target_project
=
project
source_team
=
source_project
.
users_projects
.
to_a
target_team
=
target_project
.
users_projects
.
to_a
target_user_ids
=
target_team
.
map
(
&
:user_id
)
target_user_ids
=
target_project
.
users_projects
.
pluck
(
:user_id
)
source_team
.
reject!
do
|
tm
|
# Skip if user already present in team
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment