Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Fixed permission bug when moving files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Yurek committed Dec 5, 2008
1 parent 5eff51c commit 8fce815
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/paperclip/storage.rb
Expand Up @@ -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 = {}
Expand Down

0 comments on commit 8fce815

Please sign in to comment.