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

21 lines
385 B
Ruby
Raw Normal View History

# frozen_string_literal: true
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