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:
Dennis Schubert 2020-02-11 19:57:09 +01:00 committed by Benjamin Neff
parent e40a07f204
commit 4685df634c
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

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