BigW Consortium Gitlab

static.rb 248 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
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