debian-mirror-gitlab/app/controllers/dashboard/labels_controller.rb

15 lines
397 B
Ruby
Raw Normal View History

2016-06-02 11:05:42 +05:30
class Dashboard::LabelsController < Dashboard::ApplicationController
def index
respond_to do |format|
2017-08-17 22:00:37 +05:30
format.json { render json: LabelSerializer.new.represent_appearance(labels) }
2016-06-02 11:05:42 +05:30
end
end
2017-09-10 17:25:29 +05:30
def labels
finder_params = { project_ids: projects.select(:id) }
labels = LabelsFinder.new(current_user, finder_params).execute
GlobalLabel.build_collection(labels)
end
2016-06-02 11:05:42 +05:30
end