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

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

17 lines
279 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module BlobViewer
module Static
extend ActiveSupport::Concern
included do
self.load_async = false
end
# We can always render a static viewer, even if the blob is too large.
def render_error
nil
end
end
end