From 175a9b9caa92ad90bf2e8b68c299a00adb1f9751 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 27 Feb 2017 00:15:00 +0100 Subject: Fix #104 - Style OAuth authorized applications page Add ability to search accounts by display name --- app/models/account.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/account.rb') 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) } -- cgit