Commit 8fce8150 by Jon Yurek

Fixed permission bug when moving files

parent 5eff51c5
......@@ -41,6 +41,7 @@ module Paperclip
FileUtils.mkdir_p(File.dirname(path(style)))
logger.info("[paperclip] -> #{path(style)}")
FileUtils.mv(file.path, path(style))
FileUtils.chmod(0644, path(style))
file.close
end
@queued_for_write = {}
......
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