diff options
author | Dennis Schubert <mail@dennis-schubert.de> | 2020-02-11 21:57:09 +0300 |
---|---|---|
committer | Benjamin Neff <benjamin@coding4coffee.ch> | 2020-02-12 01:53:14 +0300 |
commit | 4685df634cbc6fe12b6da5aac427d87e22c4d0a9 (patch) | |
tree | b4997f11ee44ef4a531e82ca19f24df92f7cb384 /app | |
parent | e40a07f204fb1641264fd927092b0829491ba1da (diff) |
Make Person.search_query_string public.
Accessibility of private/protected class methods in :scope is deprecated and will be removed in Rails 6.0.
Diffstat (limited to 'app')
-rw-r--r-- | app/models/person.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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" |