gitlab-org--gitlab-foss/app/models/blob_viewer/auxiliary.rb

19 lines
358 B
Ruby
Raw Normal View History

2017-05-08 19:50:23 -04:00
module BlobViewer
module Auxiliary
extend ActiveSupport::Concern
2017-05-14 15:01:12 -04:00
include Gitlab::Allowable
2017-05-08 19:50:23 -04:00
included do
self.loading_partial_name = 'loading_auxiliary'
self.type = :auxiliary
self.overridable_max_size = 100.kilobytes
2017-05-08 19:50:23 -04:00
self.max_size = 100.kilobytes
end
2017-05-14 15:01:12 -04:00
def visible_to?(current_user)
true
end
2017-05-08 19:50:23 -04:00
end
end