From 4685df634cbc6fe12b6da5aac427d87e22c4d0a9 Mon Sep 17 00:00:00 2001 From: Dennis Schubert Date: Tue, 11 Feb 2020 19:57:09 +0100 Subject: [PATCH] Make Person.search_query_string public. Accessibility of private/protected class methods in :scope is deprecated and will be removed in Rails 6.0. --- app/models/person.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/person.rb b/app/models/person.rb index 64746200e..db799d7d7 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -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"