Merge pull request #3662 from b-studios/include-options-in-serialization
Use userfield serializer in json dump
This commit is contained in:
commit
e2c9e11dd9
|
@ -80,7 +80,9 @@ class Site
|
|||
return {
|
||||
periods: TopTopic.periods.map(&:to_s),
|
||||
filters: Discourse.filters.map(&:to_s),
|
||||
user_fields: UserField.all
|
||||
user_fields: UserField.all.map do |userfield|
|
||||
UserFieldSerializer.new(userfield, root: false, scope: guardian)
|
||||
end
|
||||
}.to_json
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue