2016-03-23 10:39:58 +00:00
|
|
|
class Dashboard::LabelsController < Dashboard::ApplicationController
|
|
|
|
def index
|
2016-05-03 16:58:43 +00:00
|
|
|
labels = Label.where(project_id: projects).select(:id, :title, :color).uniq(:title)
|
2016-03-23 10:39:58 +00:00
|
|
|
|
|
|
|
respond_to do |format|
|
|
|
|
format.json { render json: labels }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|