diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-11-16 19:55:58 +0100 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-11-16 19:55:58 +0100 |
commit | b093f50986b6dcd0e4caf33d3c96831155e71db8 (patch) | |
tree | ed37394c7b2479a66c494768c9af339b6dc7c29d /app/models/global_milestone.rb | |
parent | 32f1a7196817b1073327c607905ee40b9140e6df (diff) | |
download | gitlab-ce-b093f50986b6dcd0e4caf33d3c96831155e71db8.tar.gz |
Some code and doc improvementsglobal-milestones
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/models/global_milestone.rb')
-rw-r--r-- | app/models/global_milestone.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/global_milestone.rb b/app/models/global_milestone.rb index f96e9d41c94..1321ccd963f 100644 --- a/app/models/global_milestone.rb +++ b/app/models/global_milestone.rb @@ -94,4 +94,8 @@ class GlobalMilestone def closed_merge_requests merge_requests.values_at("closed", "merged", "locked").compact.flatten end + + def complete? + total_items_count == closed_items_count + end end |