debian-mirror-gitlab/app/models/blob_viewer/auxiliary.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
385 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2017-09-10 17:25:29 +05:30
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