mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 11:11:13 +08:00
DEV: Plugin API to add directory columns (#13440)
This commit is contained in:

committed by
GitHub

parent
fe5923da06
commit
7fc3d7bdde
@ -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
|
||||
|
Reference in New Issue
Block a user