fix pdf generation

This commit is contained in:
Alex Turchyn
2023-06-18 16:30:35 +03:00
parent 662d052904
commit 02fee9f885
9 changed files with 99 additions and 68 deletions
@@ -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',