diff options
author | Dan Rowden <hello@danrowden.com> | 2016-07-22 23:58:55 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-09-07 23:27:14 +0300 |
commit | c1f508b0b10965f9827a9e6bd564e9c0fd00f595 (patch) | |
tree | 150200a92a724a7e4f92da9f8791b41bcec68c95 /app/helpers/milestones_helper.rb | |
parent | 909deaa38a040777ec236d9365bc726c9de15194 (diff) |
Use newer hash style
Diffstat (limited to 'app/helpers/milestones_helper.rb')
-rw-r--r-- | app/helpers/milestones_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/milestones_helper.rb b/app/helpers/milestones_helper.rb index 797cbc341e3..22d8ecd3ecb 100644 --- a/app/helpers/milestones_helper.rb +++ b/app/helpers/milestones_helper.rb @@ -41,9 +41,9 @@ module MilestonesHelper def milestone_counts(project:) counts = @project.milestones.reorder(nil).group(:state).count() { - 'opened' => counts['active'], - 'closed' => counts['closed'], - 'all' => counts['active'] + counts['closed'] + opened: counts['active'], + closed: counts['closed'], + all: counts['active'] + counts['closed'] } end |