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

19 lines
354 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.collapse_limit = 100.kilobytes
self.size_limit = 100.kilobytes
2017-05-08 19:50:23 -04:00
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