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

17 lines
411 B
Ruby
Raw Normal View History

2017-04-13 17:04:29 +00:00
module BlobViewer
class Download < Base
include Simple
2017-04-21 18:22:04 +00:00
# We treat the Download viewer as if it renders the content client-side,
# so that it doesn't attempt to load the entire blob contents and is
# rendered synchronously instead of loaded asynchronously.
2017-04-20 16:48:19 +00:00
include ClientSide
2017-04-13 17:04:29 +00:00
self.partial_name = 'download'
self.text_based = false
2017-04-21 18:59:34 +00:00
def render_error
2017-04-13 17:04:29 +00:00
nil
end
end
end