diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-29 09:10:04 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-29 09:10:04 +0000 |
commit | e357d4951c53a3ce4f696cf533ce24a4c6350a7e (patch) | |
tree | d41e4e557c10c1ac7f32e108d67639c945ed539e /app/models/snippet.rb | |
parent | 2f0a7423ed75cdf30f5bcb9d3642f06d130b53b1 (diff) | |
download | gitlab-ce-e357d4951c53a3ce4f696cf533ce24a4c6350a7e.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/snippet.rb')
-rw-r--r-- | app/models/snippet.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/app/models/snippet.rb b/app/models/snippet.rb index f3a0bea12dd..32f3309b0a3 100644 --- a/app/models/snippet.rb +++ b/app/models/snippet.rb @@ -341,17 +341,6 @@ class Snippet < ApplicationRecord fuzzy_search(query, [:title, :description, :file_name]) end - # Searches for snippets with matching content. - # - # This method uses ILIKE on PostgreSQL and LIKE on MySQL. - # - # query - The search query as a String. - # - # Returns an ActiveRecord::Relation. - def search_code(query) - fuzzy_search(query, [:content]) - end - def parent_class ::Project end |