diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-11-24 12:08:16 +0100 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-11-24 17:28:50 +0100 |
commit | b2c5363da1bdfb4df8693de38f9d83fe203e6e99 (patch) | |
tree | 9aea4618ab6081d51e977091a6d456d635496129 /lib/gitlab/sql | |
parent | aedd2cfa5b82c01f82ec26b64880fce2a07fe942 (diff) | |
download | gitlab-ce-b2c5363da1bdfb4df8693de38f9d83fe203e6e99.tar.gz |
Rename to_fuzzy_arel to fuzzy_arel_match
Diffstat (limited to 'lib/gitlab/sql')
-rw-r--r-- | lib/gitlab/sql/pattern.rb | 2 |
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)) } |