diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-13 12:06:51 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-16 15:51:22 -0500 |
commit | 7844fa1fc2e54de9b36f6bb2faa6d2f3385fc4f7 (patch) | |
tree | 053b42a3cce696ae37ed014f96cd3984b7a64b5a /app/models | |
parent | 67312fceaa69abb2bc88aa62601625e9f6a62270 (diff) | |
download | gitlab-ce-7844fa1fc2e54de9b36f6bb2faa6d2f3385fc4f7.tar.gz |
Add auxiliary viewer for CONTRIBUTINGdm-contributing-viewer
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/blob.rb | 4 | ||||
-rw-r--r-- | app/models/blob_viewer/contributing.rb | 10 |
2 files changed, 13 insertions, 1 deletions
diff --git a/app/models/blob.rb b/app/models/blob.rb index 63a81c0e3bd..e0c539a17cf 100644 --- a/app/models/blob.rb +++ b/app/models/blob.rb @@ -39,7 +39,9 @@ class Blob < SimpleDelegator AUXILIARY_VIEWERS = [ BlobViewer::GitlabCiYml, BlobViewer::RouteMap, - BlobViewer::License + + BlobViewer::License, + BlobViewer::Contributing ].freeze attr_reader :project diff --git a/app/models/blob_viewer/contributing.rb b/app/models/blob_viewer/contributing.rb new file mode 100644 index 00000000000..fbd1dd48697 --- /dev/null +++ b/app/models/blob_viewer/contributing.rb @@ -0,0 +1,10 @@ +module BlobViewer + class Contributing < Base + include Auxiliary + include Static + + self.partial_name = 'contributing' + self.file_types = %i(contributing) + self.binary = false + end +end |