Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-03-24 18:20:35 +0300
committerPhil Hughes <me@iamphill.com>2016-03-29 13:59:13 +0300
commit88024b17c03f5cc834465574c55a566f8f1a5819 (patch)
treedd3dc42801c5553103e6a9d6922918266b6377e1 /app/controllers/projects/milestones_controller.rb
parent3aeda8c94f446931a38f3dcc22b7c835ef5cc818 (diff)
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/controllers/projects/milestones_controller.rb')
-rw-r--r--app/controllers/projects/milestones_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/milestones_controller.rb b/app/controllers/projects/milestones_controller.rb
index 5b0a63a933c..f7b6d137bde 100644
--- a/app/controllers/projects/milestones_controller.rb
+++ b/app/controllers/projects/milestones_controller.rb
@@ -24,7 +24,7 @@ class Projects::MilestonesController < Projects::ApplicationController
@milestones = @milestones.page(params[:page])
end
format.json do
- render json: @milestones
+ render json: @milestones.to_json(methods: :name)
end
end
end