Class: InstanceUser

Inherits:
ApplicationRecord show all
Includes:
InstanceUserSearchConcern
Defined in:
app/models/instance_user.rb

Class Method Summary collapse

Class Method Details

.search_and_ordered_by_username(keyword) ⇒ Object


12
13
14
# File 'app/models/instance_user.rb', line 12

def self.search_and_ordered_by_username(keyword)
  keyword.blank? ? ordered_by_username : search(keyword).group('users.name').ordered_by_username
end