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: 25b9f7de243d104f476c39871f2c6fc8cae07f25 (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] })
  end
end