module Logistics module Core class DocumentUploader < CarrierWave::Uploader::Base storage :file def store_dir ENV.fetch('UPLOAD_PREFIX') + "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end end end end