Module: Thredded::UsersProvider

Defined in:
lib/thredded/users_provider.rb

Class Method Summary collapse

Class Method Details

.call(user_names, scope) ⇒ Object



7
8
9
10
11
# File 'lib/thredded/users_provider.rb', line 7

def call(user_names, scope)
  DbTextSearch::CaseInsensitive
    .new(scope, Thredded.user_name_column)
    .in(user_names)
end