diff options
author | Rémy Coutable <remy@rymai.me> | 2016-03-23 11:39:58 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-03-23 12:02:15 +0100 |
commit | ce44e5a787482e4d02cee007d35ab30ab651f6f8 (patch) | |
tree | ecca842cf9549c69867c3902192c250b59f74ac7 /app/controllers/dashboard | |
parent | e989d12b0768f0caa7ea1a429a2182e26bbf225a (diff) | |
download | gitlab-ce-ce44e5a787482e4d02cee007d35ab30ab651f6f8.tar.gz |
Add missing Dashboard::LabelsController
Diffstat (limited to 'app/controllers/dashboard')
-rw-r--r-- | app/controllers/dashboard/labels_controller.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/dashboard/labels_controller.rb b/app/controllers/dashboard/labels_controller.rb new file mode 100644 index 00000000000..23a4ef21ea2 --- /dev/null +++ b/app/controllers/dashboard/labels_controller.rb @@ -0,0 +1,9 @@ +class Dashboard::LabelsController < Dashboard::ApplicationController + def index + labels = Label.where(project_id: projects).select(:title, :color).uniq(:title) + + respond_to do |format| + format.json { render json: labels } + end + end +end |