add ltv method

This commit is contained in:
Pete Matsyburka
2024-07-09 13:15:51 +03:00
parent b92d1ee38c
commit c01cfe83be
3 changed files with 14 additions and 4 deletions
@@ -24,9 +24,11 @@ module Submissions
pdf.sign(io, **sign_params)
Submissions::GenerateResultAttachments.maybe_enable_ltv(io, sign_params)
ActiveStorage::Attachment.create!(
blob: ActiveStorage::Blob.create_and_upload!(
io: StringIO.new(io.string), filename: "#{submission.template.name}.pdf"
io: io.tap(&:rewind), filename: "#{submission.template.name}.pdf"
),
name: 'combined_document',
record: submission