Commit 39d804b1 authored by Shinya Maeda's avatar Shinya Maeda

Reload remote file the cacheds file is already removed

parent 50b68fc2
......@@ -15,6 +15,9 @@ module CarrierWave
begin
file_body = ::File.open(file_body.path) if file_body.closed? # Reopen if it's closed
file_body.read
rescue Errno::ENOENT
@file = nil # rubocop:disable Gitlab/ModuleWithInstanceVariables
file.body
ensure
file_body.close
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