Revert "Revert "Expose dossier PDF export as IO""

This reverts commit 362093eff0.
This commit is contained in:
Christophe Robillard 2021-06-24 21:01:59 +02:00
parent aa13bf1c23
commit 66cc0dd08d
7 changed files with 37 additions and 18 deletions

View file

@ -26,7 +26,7 @@ class ProcedureArchiveService
Zip::OutputStream.open(tmp_file) do |zipfile|
files.each do |attachment, pj_filename|
zipfile.put_next_entry(pj_filename)
zipfile.put_next_entry("procedure-#{@procedure.id}/#{pj_filename}")
zipfile.puts(attachment.download)
end
end