be42c05054
Enables frozen string for the following: * app/controllers/dashboard/**/*.rb * app/controllers/explore/**/*.rb * app/controllers/google_api/**/*.rb * app/controllers/groups/**/*.rb * app/controllers/import/**/*.rb * app/controllers/instance_statistics/**/*.rb * app/controllers/ldap/**/*.rb * app/controllers/oauth/**/*.rb * app/controllers/profiles/**/*.rb Partially addresses #47424.
16 lines
428 B
Ruby
16 lines
428 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Dashboard::LabelsController < Dashboard::ApplicationController
|
|
def index
|
|
respond_to do |format|
|
|
format.json { render json: LabelSerializer.new.represent_appearance(labels) }
|
|
end
|
|
end
|
|
|
|
def labels
|
|
finder_params = { project_ids: projects.select(:id) }
|
|
labels = LabelsFinder.new(current_user, finder_params).execute
|
|
|
|
GlobalLabel.build_collection(labels)
|
|
end
|
|
end
|