mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: New "Dropdown" user field type
This commit is contained in:
@@ -5,5 +5,14 @@ class UserFieldSerializer < ApplicationSerializer
|
||||
:field_type,
|
||||
:editable,
|
||||
:required,
|
||||
:show_on_profile
|
||||
:show_on_profile,
|
||||
:options
|
||||
|
||||
def options
|
||||
object.user_field_options.pluck(:value)
|
||||
end
|
||||
|
||||
def include_options?
|
||||
options.present?
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user