Commit 93acc677 by Kevin G Committed by Sid Raval

Also open destination file in symlink failure case

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