summaryrefslogtreecommitdiff
path: root/app/models/milestone.rb
diff options
context:
space:
mode:
authorNihad Abbasov <narkoz.2008@gmail.com>2012-09-26 23:28:10 -0700
committerNihad Abbasov <narkoz.2008@gmail.com>2012-09-27 02:55:57 -0700
commitc7a1779b2215b1815d43c5635e026afeed8da7f4 (patch)
tree738bc1d8594299ba1c51461ba8dd9f42ecfd0be0 /app/models/milestone.rb
parent841e4fbd08d2d642c127506001a76a973ea3d536 (diff)
downloadgitlab-ce-c7a1779b2215b1815d43c5635e026afeed8da7f4.tar.gz
.map -> .pluck
Diffstat (limited to 'app/models/milestone.rb')
-rw-r--r--app/models/milestone.rb2
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