diff options
author | Mark Chao <mchao@gitlab.com> | 2018-10-04 17:16:51 +0800 |
---|---|---|
committer | Mark Chao <mchao@gitlab.com> | 2018-10-30 15:44:55 +0800 |
commit | a4ba973e24ef6767d635c0291c9b6ce8085aef28 (patch) | |
tree | 28efdf13b834db6267fd8bd64d798d8e694b0109 /lib/gitlab/project_search_results.rb | |
parent | bc14e4ed1024efa1e0a411bd59e1339fb1af20c0 (diff) | |
download | gitlab-ce-a4ba973e24ef6767d635c0291c9b6ce8085aef28.tar.gz |
Allow FoundBlob to access language from gitattributes
Extract language_from_git_attributes as a concern so it can
ben included in two blob classes.
Diffstat (limited to 'lib/gitlab/project_search_results.rb')
-rw-r--r-- | lib/gitlab/project_search_results.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/project_search_results.rb b/lib/gitlab/project_search_results.rb index 3a202d915e3..04df881bf03 100644 --- a/lib/gitlab/project_search_results.rb +++ b/lib/gitlab/project_search_results.rb @@ -82,7 +82,7 @@ module Gitlab ref: ref, startline: startline, data: data.join, - project_id: project ? project.id : nil + project: project ) end |