Permalink
Browse files

Fixed permission bug when moving files

  • Loading branch information...
1 parent 5eff51c commit 8fce8150c9c2abf3f8ce024a531a8ed5b837de8b @jyurek jyurek committed Dec 5, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/paperclip/storage.rb
View
@@ -41,6 +41,7 @@ def flush_writes #:nodoc:
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 = {}

0 comments on commit 8fce815

Please sign in to comment.