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 :activated, -> { where(active: true) }
|
||||||
|
|
||||||
scope :filter_by_username, ->(filter) do
|
scope :filter_by_username, ->(filter) do
|
||||||
where('username_lower ILIKE ?', filter)
|
where('username_lower ILIKE ?', "%#{filter}%")
|
||||||
end
|
end
|
||||||
|
|
||||||
scope :filter_by_username_or_email, ->(filter) do
|
scope :filter_by_username_or_email, ->(filter) do
|
||||||
|
|
Loading…
Reference in New Issue