Fix #104 - Style OAuth authorized applications page
Add ability to search accounts by display name
This commit is contained in:
parent
2826e6dada
commit
175a9b9caa
9 changed files with 49 additions and 4 deletions
|
@ -52,7 +52,7 @@ class Account < ApplicationRecord
|
|||
# PuSH subscriptions
|
||||
has_many :subscriptions, dependent: :destroy
|
||||
|
||||
pg_search_scope :search_for, against: { username: 'A', domain: 'B' },
|
||||
pg_search_scope :search_for, against: { display_name: 'A', username: 'B', domain: 'C' },
|
||||
using: { tsearch: { prefix: true } }
|
||||
|
||||
scope :remote, -> { where.not(domain: nil) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue