blob: 23a4ef21ea20e185b5b334025cb25ddef9598f50 (
plain)
1
2
3
4
5
6
7
8
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
|