diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-27 00:15:00 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-27 00:15:00 +0100 |
commit | 175a9b9caa92ad90bf2e8b68c299a00adb1f9751 (patch) | |
tree | ac9ee673567dd8661fce0644193377af5818b08e /app/models | |
parent | 2826e6dada94da4508ab89f137b456145656d2d9 (diff) |
Fix #104 - Style OAuth authorized applications page
Add ability to search accounts by display name
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/account.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/account.rb b/app/models/account.rb index 469695acd..a93a0668a 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -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) } |