FEATURE: New "Dropdown" user field type

This commit is contained in:
Robin Ward
2015-07-28 12:29:40 -04:00
parent f22618050f
commit dc8a68fd29
18 changed files with 248 additions and 52 deletions

View File

@@ -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