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.
This commit is contained in:
Krzysztof Kotlarek
2021-04-27 15:52:45 +10:00
committed by GitHub
parent 8aeeadd8b0
commit e29605b79f
16 changed files with 154 additions and 19 deletions

View File

@ -3,7 +3,7 @@
class Admin::UserFieldsController < Admin::AdminController
def self.columns
[:name, :field_type, :editable, :description, :required, :show_on_profile, :show_on_user_card, :position]
%i(name field_type editable description required show_on_profile show_on_user_card position searchable)
end
def create