diff options
author | Phil Hughes <me@iamphill.com> | 2016-03-24 15:20:35 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-03-29 11:59:13 +0100 |
commit | 88024b17c03f5cc834465574c55a566f8f1a5819 (patch) | |
tree | dd3dc42801c5553103e6a9d6922918266b6377e1 /app/models/global_milestone.rb | |
parent | 3aeda8c94f446931a38f3dcc22b7c835ef5cc818 (diff) | |
download | gitlab-ce-88024b17c03f5cc834465574c55a566f8f1a5819.tar.gz |
Standardised the output of the JSON to always include the name
The frontend will then always use the name as the ID - like previous
Diffstat (limited to 'app/models/global_milestone.rb')
-rw-r--r-- | app/models/global_milestone.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/global_milestone.rb b/app/models/global_milestone.rb index 97bd79af083..9c0e7e4fb63 100644 --- a/app/models/global_milestone.rb +++ b/app/models/global_milestone.rb @@ -8,12 +8,13 @@ class GlobalMilestone milestones = milestones.group_by(&:title) milestones.map do |title, milestones| - new(title, milestones) + new(title, milestones) end end def initialize(title, milestones) @title = title + @name = title @milestones = milestones end |