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

16 lines
329 B
Ruby
Raw Normal View History

2017-04-13 13:04:29 -04:00
module BlobViewer
class Download < Base
include Simple
2017-04-20 12:48:19 -04:00
# We pretend the Download viewer is rendered client-side so that it doesn't
# attempt to load the entire blob contents.
include ClientSide
2017-04-13 13:04:29 -04:00
self.partial_name = 'download'
self.text_based = false
def render_error(*)
nil
end
end
end