diff options
author | Mark Chao <mchao@gitlab.com> | 2018-09-07 11:06:36 +0800 |
---|---|---|
committer | Mark Chao <mchao@gitlab.com> | 2018-09-07 11:08:59 +0800 |
commit | e40ae2f9f4fad80cb3f6f84d0ebea786891220cf (patch) | |
tree | 400fc1f1c13541e41fb39ce1c035f34f6282b9a4 | |
parent | 4e178e392bd0e915b54dfbd7c9f42a4624df8efd (diff) | |
download | gitlab-ce-cache-highlight-2.tar.gz |
Force FoundBlob to use BlobPresentercache-highlight-2
-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 4be3a13c33f..50902d8c968 100644 --- a/lib/gitlab/search_results.rb +++ b/lib/gitlab/search_results.rb @@ -2,6 +2,7 @@ module Gitlab class SearchResults class FoundBlob include EncodingHelper + include Presentable attr_reader :id, :filename, :basename, :ref, :startline, :data, :project_id @@ -28,6 +29,10 @@ module Gitlab def language_from_gitattributes nil end + + def present + super(presenter_class: BlobPresenter) + end end attr_reader :current_user, :query, :per_page |