0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-05 21:16:17 +08:00
discourse/app/serializers/search_result_user_serializer.rb
Krzysztof Kotlarek e29605b79f
FEATURE: the ability to search users by custom fields (#12762)
When the admin creates a new custom field they can specify if that field should be searchable or not.

That setting is taken into consideration for quick search results.
2021-04-27 15:52:45 +10:00

6 lines
135 B
Ruby
Vendored

# frozen_string_literal: true
class SearchResultUserSerializer < BasicUserSerializer
attributes :name
attributes :custom_data
end