1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 11:37:14 +00:00

Disable rubocop Lint/IneffectiveAccessModifier for @self.tokenized_like_conditions@ in @app/models/query.rb@ (#35764).

git-svn-id: http://svn.redmine.org/redmine/trunk@21241 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu 2021-10-09 06:47:54 +00:00
parent 6cbf1f2015
commit d91f644a14

View File

@ -1452,6 +1452,7 @@ class Query < ActiveRecord::Base
end
end
# rubocop:disable Lint/IneffectiveAccessModifier
def self.tokenized_like_conditions(db_field, value, **options)
tokens = Redmine::Search::Tokenizer.new(value).tokens
tokens = [value] unless tokens.present?
@ -1460,6 +1461,7 @@ class Query < ActiveRecord::Base
end.transpose
[sql.join(" AND "), *values]
end
# rubocop:enable Lint/IneffectiveAccessModifier
# Adds a filter for the given custom field
def add_custom_field_filter(field, assoc=nil)