OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/lib/open_project/patches/fog_file.rb

19 lines
628 B

require 'open_project/patches'
module OpenProject::Patches::CarrierwaveSanitizedFile
extend ActiveSupport::Concern
included do
# create the directory if it doesn't exist
# Overwritten to avoid ruby 2.7 deprecations
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))
end
end
end
OpenProject::Patches.patch_gem_version 'carrierwave', '1.3.2' do
CarrierWave::SanitizedFile.include OpenProject::Patches::CarrierwaveSanitizedFile
end