summaryrefslogtreecommitdiff
path: root/app/models/blob_viewer/static.rb
blob: 5cac08aa189eea8947a0774bf0fe03be758ddeaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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