diff options
author | skv <skv-headless@yandex.ru> | 2013-12-17 22:37:56 +0400 |
---|---|---|
committer | skv <skv-headless@yandex.ru> | 2013-12-17 22:37:56 +0400 |
commit | 3adf35fb642fd8acfa4ecc1bd73f06ddb8fa9849 (patch) | |
tree | 76cbe24873d14f45e85b3c02eb2dd9e03d707604 | |
parent | 26c8b3163454ab4610a8130f13de1dc686dcdabf (diff) |
pluck user_ids during team import
-rw-r--r-- | app/models/project_team.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/project_team.rb b/app/models/project_team.rb index 2d438b91c69..83416a08164 100644 --- a/app/models/project_team.rb +++ b/app/models/project_team.rb @@ -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 |