fix pdf generation

This commit is contained in:
Alex Turchyn committed 2023-06-18 16:32:17 +03:00
1 parent 662d052904
commit 02fee9f885
9 files changed
+99 -68

No files matched your search

@@ -12,10 +12,10 @@ class SubmissionsDebugController < ApplicationController
respond_to do |f|
f.html do
render 'submit_template/show'
render 'submit_form/show'
end
f.pdf do
Submissions::GenerateResultAttachments.call(@submitter.submission)
Submissions::GenerateResultAttachments.call(@submitter)
send_data ActiveStorage::Attachment.where(name: :documents).last.download,
filename: 'debug.pdf',