lib/carrierwave/storage/file.rb in carrierwave-0.6.2 vs lib/carrierwave/storage/file.rb in carrierwave-0.7.0
- old
+ new
@@ -27,12 +27,12 @@
# [CarrierWave::SanitizedFile] a sanitized file
#
def store!(file)
path = ::File.expand_path(uploader.store_path, uploader.root)
if uploader.move_to_store
- file.move_to(path, uploader.permissions)
+ file.move_to(path, uploader.permissions, uploader.directory_permissions)
else
- file.copy_to(path, uploader.permissions)
+ file.copy_to(path, uploader.permissions, uploader.directory_permissions)
end
end
##
# Retrieve the file from its store path