diff options
| author | gitlabhq <m@gitlabhq.com> | 2012-04-24 21:49:34 +0300 |
|---|---|---|
| committer | gitlabhq <m@gitlabhq.com> | 2012-04-24 21:49:34 +0300 |
| commit | c9af8e757948838cd6e7232dc189debd61e0c799 (patch) | |
| tree | 0fff929c3c0ae92a9278caa34b7365a4e1cf59f0 /app/models/milestone.rb | |
| parent | af99e4afe18788a536c5e789153235f3ff44f67f (diff) | |
| download | gitlab-ce-c9af8e757948838cd6e7232dc189debd61e0c799.tar.gz | |
New project page improved. User profile improved. Show issues, participant on Milestone show page.
Diffstat (limited to 'app/models/milestone.rb')
| -rw-r--r-- | app/models/milestone.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/milestone.rb b/app/models/milestone.rb index 87e9d1db588..733c6a86803 100644 --- a/app/models/milestone.rb +++ b/app/models/milestone.rb @@ -9,6 +9,10 @@ class Milestone < ActiveRecord::Base where("due_date > ? OR due_date IS NULL", Date.today) end + def participants + User.where(:id => issues.map(&:assignee_id)) + end + def percent_complete @percent_complete ||= begin total_i = self.issues.count |
