Revert "Revert "Expose dossier PDF export as IO""
This reverts commit 362093eff0
.
This commit is contained in:
parent
aa13bf1c23
commit
66cc0dd08d
7 changed files with 37 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue