diff options
Diffstat (limited to 'app/presenters/blob_presenter.rb')
-rw-r--r-- | app/presenters/blob_presenter.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/presenters/blob_presenter.rb b/app/presenters/blob_presenter.rb index c52fc168c55..087fb8bf201 100644 --- a/app/presenters/blob_presenter.rb +++ b/app/presenters/blob_presenter.rb @@ -22,14 +22,15 @@ class BlobPresenter < Gitlab::View::Presenter::Delegated ) end - def highlight(to: nil, plain: nil) + def highlight(to: nil, plain: nil, used_on: :blob) load_all_blob_data Gitlab::Highlight.highlight( blob.path, blob_data(to), language: blob_language, - plain: plain + plain: plain, + used_on: used_on ) end |