Method: Scrivito::UserDefinition#suggest_users
- Defined in:
- app/cms/scrivito/user_definition.rb
#suggest_users(&suggest_users_proc) {|input| ... } ⇒ Object
Note:
Only the first 20 users returned are displayed in the in-place UI.
Note:
suggest_users_proc
may also be invoked with an empty string.
Defines the proc for fetching users for autocompletion purposes in the in-place UI. User autocompletion is used in the settings dialog of a workspace. If the proc is not set, Scrivito::User.find is used to fetch the suggested users, assuming the input is part of the user id.
155 156 157 |
# File 'app/cms/scrivito/user_definition.rb', line 155 def suggest_users(&suggest_users_proc) @suggest_users_proc = suggest_users_proc end |