Commit 2f4015de by Kevin G Committed by Sid Raval

Also close @destination like the normal path

parent 93acc677
...@@ -64,6 +64,7 @@ module Paperclip ...@@ -64,6 +64,7 @@ module Paperclip
rescue Errno::EXDEV, Errno::EPERM, Errno::ENOENT, Errno::EEXIST => e rescue Errno::EXDEV, Errno::EPERM, Errno::ENOENT, Errno::EEXIST => e
Paperclip.log("Link failed with #{e.message}; copying link #{src} to #{dest}") Paperclip.log("Link failed with #{e.message}; copying link #{src} to #{dest}")
FileUtils.cp(src, dest) FileUtils.cp(src, dest)
@destination.close
@destination.open.binmode @destination.open.binmode
end 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