diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-09-26 23:28:10 -0700 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-09-27 02:55:57 -0700 |
commit | c7a1779b2215b1815d43c5635e026afeed8da7f4 (patch) | |
tree | 738bc1d8594299ba1c51461ba8dd9f42ecfd0be0 /app/models/milestone.rb | |
parent | 841e4fbd08d2d642c127506001a76a973ea3d536 (diff) | |
download | gitlab-ce-c7a1779b2215b1815d43c5635e026afeed8da7f4.tar.gz |
.map -> .pluck
Diffstat (limited to 'app/models/milestone.rb')
-rw-r--r-- | app/models/milestone.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/milestone.rb b/app/models/milestone.rb index da54ac402df..a8619954017 100644 --- a/app/models/milestone.rb +++ b/app/models/milestone.rb @@ -11,7 +11,7 @@ class Milestone < ActiveRecord::Base end def participants - User.where(id: issues.map(&:assignee_id)) + User.where(id: issues.pluck(:assignee_id)) end def percent_complete |