gitlab-org--gitlab-foss/app/models/blob_viewer/auxiliary.rb
2017-05-17 13:33:39 -05:00

18 lines
358 B
Ruby

module BlobViewer
module Auxiliary
extend ActiveSupport::Concern
include Gitlab::Allowable
included do
self.loading_partial_name = 'loading_auxiliary'
self.type = :auxiliary
self.overridable_max_size = 100.kilobytes
self.max_size = 100.kilobytes
end
def visible_to?(current_user)
true
end
end
end