Commit 36e7b322 authored by Douwe Maan's avatar Douwe Maan

Download blob viewer is client-side

parent 7cc4546b
......@@ -75,7 +75,7 @@ module BlobViewer
end
def server_side_but_stored_in_lfs?
!client_side? && blob.valid_lfs_pointer?
server_side? && blob.valid_lfs_pointer?
end
end
end
module BlobViewer
class Download < Base
include Simple
include ServerSide
# We pretend the Download viewer is rendered client-side so that it doesn't
# attempt to load the entire blob contents.
include ClientSide
self.partial_name = 'download'
self.text_based = false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment