diff options
author | Rubén Dávila <rdavila84@gmail.com> | 2016-01-25 12:07:04 -0500 |
---|---|---|
committer | Rubén Dávila <rdavila84@gmail.com> | 2016-02-02 17:45:42 -0500 |
commit | 365d96ca850caf653f48a611f4a6dd785487e526 (patch) | |
tree | 5c3e4ab8c1becb10479fb99bcaaa11401440618f /app/models/label.rb | |
parent | c4c919e59ded2fbf29dc3085b6621e02c0b10f54 (diff) | |
download | gitlab-ce-365d96ca850caf653f48a611f4a6dd785487e526.tar.gz |
Add labels tab to milestone detail view.
Diffstat (limited to 'app/models/label.rb')
-rw-r--r-- | app/models/label.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/label.rb b/app/models/label.rb index 220da10a6ab..f93ce7e1c89 100644 --- a/app/models/label.rb +++ b/app/models/label.rb @@ -85,6 +85,10 @@ class Label < ActiveRecord::Base issues.opened.count end + def closed_issues_count + issues.closed.count + end + def template? template end |