Welcome to mirror list, hosted at ThFree Co, Russian Federation.

static.rb « blob_viewer « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c9e257e53885bad87500ffbf2158356dbc8679ba (plain)
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