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