summaryrefslogtreecommitdiff
path: root/lib/gitlab/search_results.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/search_results.rb')
-rw-r--r--lib/gitlab/search_results.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gitlab/search_results.rb b/lib/gitlab/search_results.rb
index f2795c739f5..3dbb0608a4f 100644
--- a/lib/gitlab/search_results.rb
+++ b/lib/gitlab/search_results.rb
@@ -4,6 +4,7 @@ module Gitlab
class SearchResults
class FoundBlob
include EncodingHelper
+ include Presentable
attr_reader :id, :filename, :basename, :ref, :startline, :data, :project_id
@@ -31,6 +32,10 @@ module Gitlab
def language_from_gitattributes
nil
end
+
+ def present
+ super(presenter_class: BlobPresenter)
+ end
end
attr_reader :current_user, :query, :per_page