Commit c0dfb64e authored by Toon Claes's avatar Toon Claes

Do not assume file attribute

But instead, ask the replicator to ask the CarrierWaveUploader to tell
what the path of the file is.
parent 879d1679
......@@ -84,9 +84,9 @@ module Gitlab
# @return [Boolean] whether the file exists on storage
def file_exist?
if local?
File.exist?(file.path)
File.exist?(replicator.carrierwave_uploader.path)
else
file.exists?
replicator.carrierwave_uploader.exists?
end
end
end
......
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