label_serializer.rb 178 Bytes EditWeb IDE 1 2 3 4 5 6 7 class LabelSerializer < BaseSerializer entity LabelEntity def represent_appearance(resource) represent(resource, { only: [:id, :title, :color, :text_color] }) end end