Commit 5eff51c5 by Jon Yurek

Converted the file copy on save into a file move

parent 06ee1b3f
......@@ -40,9 +40,8 @@ module Paperclip
@queued_for_write.each do |style, file|
FileUtils.mkdir_p(File.dirname(path(style)))
logger.info("[paperclip] -> #{path(style)}")
result = file.stream_to(path(style))
FileUtils.mv(file.path, path(style))
file.close
result.close
end
@queued_for_write = {}
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