2018-08-03 07:15:25 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-05-12 19:43:06 +00:00
|
|
|
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
|