lib/carrierwave/storage/file.rb in carrierwave-0.5.0 vs lib/carrierwave/storage/file.rb in carrierwave-0.5.1
- old
+ new
@@ -21,11 +21,10 @@
#
# [CarrierWave::SanitizedFile] a sanitized file
#
def store!(file)
path = ::File.expand_path(uploader.store_path, uploader.root)
- file.move_to(path, uploader.permissions)
- file
+ file.copy_to(path, uploader.permissions)
end
##
# Retrieve the file from its store path
#