mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fix the build.
This commit is contained in:
parent
3a62eba299
commit
fa95699fde
@ -160,7 +160,7 @@ class User < ActiveRecord::Base
|
||||
scope :activated, -> { where(active: true) }
|
||||
|
||||
scope :filter_by_username, ->(filter) do
|
||||
where('username_lower ILIKE ?', filter)
|
||||
where('username_lower ILIKE ?', "%#{filter}%")
|
||||
end
|
||||
|
||||
scope :filter_by_username_or_email, ->(filter) do
|
||||
|
Loading…
Reference in New Issue
Block a user