Make Person.search_query_string public.
Accessibility of private/protected class methods in :scope is deprecated and will be removed in Rails 6.0.
This commit is contained in:
parent
e40a07f204
commit
4685df634c
1 changed files with 1 additions and 1 deletions
|
|
@ -209,7 +209,7 @@ class Person < ApplicationRecord
|
|||
self.guid
|
||||
end
|
||||
|
||||
private_class_method def self.search_query_string(query)
|
||||
def self.search_query_string(query)
|
||||
query = query.downcase
|
||||
like_operator = AppConfig.postgres? ? "ILIKE" : "LIKE"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue