.map -> .pluck

This commit is contained in:
Nihad Abbasov 2012-09-26 23:28:10 -07:00
parent 841e4fbd08
commit c7a1779b22
2 changed files with 2 additions and 2 deletions

View file

@ -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