DEV: Plugin API to add directory columns (#13440)

This commit is contained in:
Mark VanLandingham
2021-06-22 13:00:04 -05:00
committed by GitHub
parent fe5923da06
commit 7fc3d7bdde
33 changed files with 452 additions and 195 deletions

View File

@ -3,11 +3,12 @@
class DirectoryColumnSerializer < ApplicationSerializer
attributes :id,
:name,
:automatic,
:enabled,
:automatic_position,
:type,
:position,
:icon
:icon,
:user_field_id
has_one :user_field, serializer: UserFieldSerializer, embed: :objects
def name
object.name || object.user_field.name
end
end