add ltv method

This commit is contained in:
Pete Matsyburka committed 2024-07-09 16:41:40 +03:00
1 parent b92d1ee38c
commit c01cfe83be
3 files changed
+14 -4

No files matched your search

@@ -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