Fix the build.

This commit is contained in:
Guo Xiang Tan 2018-03-22 14:20:13 +08:00
parent 3a62eba299
commit fa95699fde

View File

@ -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