diff options
author | Mark Chao <mchao@gitlab.com> | 2018-09-07 11:06:09 +0800 |
---|---|---|
committer | Mark Chao <mchao@gitlab.com> | 2018-09-07 11:08:58 +0800 |
commit | 4e178e392bd0e915b54dfbd7c9f42a4624df8efd (patch) | |
tree | 170d2e23fd2f002266a9b340074fc293dd2d622d | |
parent | 92966277816d2b1698328068573dbf47e8e287ea (diff) | |
download | gitlab-ce-4e178e392bd0e915b54dfbd7c9f42a4624df8efd.tar.gz |
Add language_from_gitattribute for SearchResults::FoundBlob
-rw-r--r-- | lib/gitlab/search_results.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gitlab/search_results.rb b/lib/gitlab/search_results.rb index 1e45d074e0a..4be3a13c33f 100644 --- a/lib/gitlab/search_results.rb +++ b/lib/gitlab/search_results.rb @@ -23,6 +23,11 @@ module Gitlab def no_highlighting? false end + + # Triggering lookup with n items is too costly. + def language_from_gitattributes + nil + end end attr_reader :current_user, :query, :per_page |