lib/carrierwave/sanitized_file.rb in carrierwave-1.0.0 vs lib/carrierwave/sanitized_file.rb in carrierwave-1.1.0

- old
+ new

@@ -184,12 +184,12 @@ mkdir!(new_path, directory_permissions) move!(new_path) chmod!(new_path, permissions) if keep_filename - self.file = {:tempfile => new_path, :filename => original_filename} + self.file = {:tempfile => new_path, :filename => original_filename, :content_type => content_type} else - self.file = new_path + self.file = {:tempfile => new_path, :content_type => content_type} end self end ## # Helper to move file to new path.