Skip to content

Commit 7285e86

Browse files
committed
Include lease template version in the footer
1 parent f70c859 commit 7285e86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/lease/envelope.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def sign(vars)
3232

3333
def with_generate_pdf(html)
3434
random = SecureRandom.hex(4)
35-
pdf_string = WickedPdf.new.pdf_from_string(html, extra: '--enable-forms')
35+
pdf_string = WickedPdf.new.pdf_from_string(html, extra: '--enable-forms', footer: { right: "v#{template.version rescue nil}" })
3636
pdf_file_name = Rails.root.join('tmp', 'pdf_lease_documents', "pdf-lease-#{envelopable.id}-#{random}.pdf")
3737
pdf_file = File.new(pdf_file_name, 'a+:ASCII-8BIT')
3838
pdf_file.write(pdf_string)

0 commit comments

Comments
 (0)