debian-mirror-gitlab/app/serializers/label_serializer.rb
2018-11-18 11:00:15 +05:30

10 lines
209 B
Ruby

# frozen_string_literal: true
class LabelSerializer < BaseSerializer
entity LabelEntity
def represent_appearance(resource)
represent(resource, { only: [:id, :title, :color, :text_color] })
end
end