diff options
Diffstat (limited to 'app/presenters/blob_presenter.rb')
-rw-r--r-- | app/presenters/blob_presenter.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/presenters/blob_presenter.rb b/app/presenters/blob_presenter.rb index 56dd056b9bc..ecc16e2840c 100644 --- a/app/presenters/blob_presenter.rb +++ b/app/presenters/blob_presenter.rb @@ -26,6 +26,10 @@ class BlobPresenter < Gitlab::View::Presenter::Delegated highlight(plain: false) end + def raw_plain_data + blob.data unless blob.binary? + end + def web_url url_helpers.project_blob_url(project, ref_qualified_path) end |