discourse/app/serializers/directory_column_serializer.rb

14 lines
327 B
Ruby

# frozen_string_literal: true
class DirectoryColumnSerializer < ApplicationSerializer
attributes :id,
:name,
:automatic,
:enabled,
:automatic_position,
:position,
:icon
has_one :user_field, serializer: UserFieldSerializer, embed: :objects
end