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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-11-24 14:08:16 +0300
committerDouwe Maan <douwe@selenight.nl>2017-11-24 19:28:50 +0300
commitb2c5363da1bdfb4df8693de38f9d83fe203e6e99 (patch)
tree9aea4618ab6081d51e977091a6d456d635496129 /lib/gitlab/sql
parentaedd2cfa5b82c01f82ec26b64880fce2a07fe942 (diff)
Rename to_fuzzy_arel to fuzzy_arel_match
Diffstat (limited to 'lib/gitlab/sql')
-rw-r--r--lib/gitlab/sql/pattern.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/sql/pattern.rb b/lib/gitlab/sql/pattern.rb
index 7c2d1d8f887..8741aa0f1c4 100644
--- a/lib/gitlab/sql/pattern.rb
+++ b/lib/gitlab/sql/pattern.rb
@@ -19,7 +19,7 @@ module Gitlab
query.length >= MIN_CHARS_FOR_PARTIAL_MATCHING
end
- def to_fuzzy_arel(column, query)
+ def fuzzy_arel_match(column, query)
words = select_fuzzy_words(query)
matches = words.map { |word| arel_table[column].matches(to_pattern(word)) }