summaryrefslogtreecommitdiff
path: root/app/models/concerns
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-11-24 12:08:16 +0100
committerDouwe Maan <douwe@selenight.nl>2017-11-24 17:28:50 +0100
commitb2c5363da1bdfb4df8693de38f9d83fe203e6e99 (patch)
tree9aea4618ab6081d51e977091a6d456d635496129 /app/models/concerns
parentaedd2cfa5b82c01f82ec26b64880fce2a07fe942 (diff)
downloadgitlab-ce-b2c5363da1bdfb4df8693de38f9d83fe203e6e99.tar.gz
Rename to_fuzzy_arel to fuzzy_arel_match
Diffstat (limited to 'app/models/concerns')
-rw-r--r--app/models/concerns/issuable.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/concerns/issuable.rb b/app/models/concerns/issuable.rb
index e607707475f..176ce1152f1 100644
--- a/app/models/concerns/issuable.rb
+++ b/app/models/concerns/issuable.rb
@@ -122,7 +122,7 @@ module Issuable
#
# Returns an ActiveRecord::Relation.
def search(query)
- title = to_fuzzy_arel(:title, query)
+ title = fuzzy_arel_match(:title, query)
where(title)
end
@@ -135,8 +135,8 @@ module Issuable
#
# Returns an ActiveRecord::Relation.
def full_search(query)
- title = to_fuzzy_arel(:title, query)
- description = to_fuzzy_arel(:description, query)
+ title = fuzzy_arel_match(:title, query)
+ description = fuzzy_arel_match(:description, query)
where(title&.or(description))
end