Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDennis Schubert <mail@dennis-schubert.de>2020-02-11 21:57:09 +0300
committerBenjamin Neff <benjamin@coding4coffee.ch>2020-02-12 01:53:14 +0300
commit4685df634cbc6fe12b6da5aac427d87e22c4d0a9 (patch)
treeb4997f11ee44ef4a531e82ca19f24df92f7cb384 /app
parente40a07f204fb1641264fd927092b0829491ba1da (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.rb2
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"