Welcome to mirror list, hosted at ThFree Co, Russian Federation.

label_serializer.rb « serializers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b09592da67fd438c7cdfb1e090a3d4af9deee01a (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

class LabelSerializer < BaseSerializer
  entity LabelEntity

  def represent_appearance(resource)
    represent(resource, { only: [:id, :title, :color, :text_color, :project_id] })
  end
end