diff options
Diffstat (limited to 'app/models/blob_viewer/auxiliary.rb')
-rw-r--r-- | app/models/blob_viewer/auxiliary.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/models/blob_viewer/auxiliary.rb b/app/models/blob_viewer/auxiliary.rb new file mode 100644 index 00000000000..1bea225f17c --- /dev/null +++ b/app/models/blob_viewer/auxiliary.rb @@ -0,0 +1,18 @@ +module BlobViewer + module Auxiliary + extend ActiveSupport::Concern + + include Gitlab::Allowable + + included do + self.loading_partial_name = 'loading_auxiliary' + self.type = :auxiliary + self.collapse_limit = 100.kilobytes + self.size_limit = 100.kilobytes + end + + def visible_to?(current_user) + true + end + end +end |