Add groups to search autocomplete. Use alphabetically scope for users order
This commit is contained in:
parent
e37a043df7
commit
a16533a04a
6 changed files with 8 additions and 6 deletions
|
@ -80,6 +80,7 @@ class User < ActiveRecord::Base
|
|||
scope :admins, where(admin: true)
|
||||
scope :blocked, where(blocked: true)
|
||||
scope :active, where(blocked: false)
|
||||
scope :alphabetically, order('name ASC')
|
||||
|
||||
class << self
|
||||
def filter filter_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue