lib/carrierwave/sanitized_file.rb in carrierwave-2.0.2 vs lib/carrierwave/sanitized_file.rb in carrierwave-2.1.0

- old
+ new

@@ -303,10 +303,10 @@ # create the directory if it doesn't exist def mkdir!(path, directory_permissions) options = {} options[:mode] = directory_permissions if directory_permissions - FileUtils.mkdir_p(File.dirname(path), options) unless File.exist?(File.dirname(path)) + FileUtils.mkdir_p(File.dirname(path), **options) unless File.exist?(File.dirname(path)) end def chmod!(path, permissions) File.chmod(permissions, path) if permissions end