summaryrefslogtreecommitdiff
path: root/app/models/blob_viewer/auxiliary.rb
blob: 263d51b4e36be784102bbd7c065008715a34c096 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

module BlobViewer
  module Auxiliary
    extend ActiveSupport::Concern

    include Gitlab::Allowable

    included do
      self.loading_partial_name = 'loading_auxiliary'
      self.type = :auxiliary
      self.collapse_limit = 100.kilobytes
      self.size_limit = 100.kilobytes
    end

    def visible_to?(current_user)
      true
    end
  end
end