Fix #104 - Style OAuth authorized applications page
Add ability to search accounts by display name
This commit is contained in:
1 parent
2826e6dada
commit
175a9b9caa
9 files changed
+49
-4
No files matched your search
@@ -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) }
|
||||
|
||||
Reference in new issue
Block a user