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/app/uploaders/local_file_uploader.rb

11 lines
256 B

class LocalFileUploader < CarrierWave::Uploader::Base
include FileUploader
storage :file
def store_dir
dir = "#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
OpenProject::Configuration.attachments_storage_path.join(dir)
end
end