2018-08-03 07:15:25 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-05-08 23:50:23 +00:00
|
|
|
module BlobViewer
|
|
|
|
module Auxiliary
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
2017-05-14 19:01:12 +00:00
|
|
|
include Gitlab::Allowable
|
|
|
|
|
2017-05-08 23:50:23 +00:00
|
|
|
included do
|
|
|
|
self.loading_partial_name = 'loading_auxiliary'
|
|
|
|
self.type = :auxiliary
|
2017-05-26 23:27:30 +00:00
|
|
|
self.collapse_limit = 100.kilobytes
|
|
|
|
self.size_limit = 100.kilobytes
|
2017-05-08 23:50:23 +00:00
|
|
|
end
|
2017-05-14 19:01:12 +00:00
|
|
|
|
|
|
|
def visible_to?(current_user)
|
|
|
|
true
|
|
|
|
end
|
2017-05-08 23:50:23 +00:00
|
|
|
end
|
|
|
|
end
|