diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-04-13 12:21:07 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-04-27 12:23:26 -0500 |
commit | 5cb27e9fa74c7234195e10ade933e8a475cff403 (patch) | |
tree | 954cbdb45d3d0bea3b4dea33805dff4ab0d83646 /app/models/blob.rb | |
parent | f112a03cba884aa67d5d601520d4c05ce517f28a (diff) | |
download | gitlab-ce-5cb27e9fa74c7234195e10ade933e8a475cff403.tar.gz |
Add rich blob viewers
Diffstat (limited to 'app/models/blob.rb')
-rw-r--r-- | app/models/blob.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/blob.rb b/app/models/blob.rb index 2b2425a926e..26ee2c883a0 100644 --- a/app/models/blob.rb +++ b/app/models/blob.rb @@ -6,6 +6,14 @@ class Blob < SimpleDelegator MAXIMUM_TEXT_HIGHLIGHT_SIZE = 1.megabyte RICH_VIEWERS = [ + BlobViewer::Image, + BlobViewer::PDF, + BlobViewer::Sketch, + BlobViewer::BinarySTL, + BlobViewer::TextSTL, + BlobViewer::Notebook, + BlobViewer::SVG, + BlobViewer::Markup, ].freeze attr_reader :project |