debian-mirror-gitlab/app/serializers/label_serializer.rb
2021-01-30 21:13:32 +05:30

9 lines
222 B
Ruby

# 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