diff options
Diffstat (limited to 'app/presenters/blob_presenter.rb')
-rw-r--r-- | app/presenters/blob_presenter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/presenters/blob_presenter.rb b/app/presenters/blob_presenter.rb index 9980f6cd8a6..6323c1b3389 100644 --- a/app/presenters/blob_presenter.rb +++ b/app/presenters/blob_presenter.rb @@ -4,6 +4,8 @@ class BlobPresenter < Gitlab::View::Presenter::Simple presents :blob def highlight(plain: nil) + blob.load_all_data! if blob.respond_to?(:load_all_data!) + Gitlab::Highlight.highlight( blob.path, blob.data, |