add combine pdf toggle

This commit is contained in:
Pete Matsyburka
2024-08-23 23:46:22 +03:00
parent 66c44f8ff5
commit b6f307690d
13 changed files with 50 additions and 16 deletions
+1
View File
@@ -40,6 +40,7 @@ class AccountConfig < ApplicationRecord
FLATTEN_RESULT_PDF_KEY = 'flatten_result_pdf'
WITH_SIGNATURE_ID = 'with_signature_id'
REQUIRE_SIGNING_REASON_KEY = 'require_signing_reason'
COMBINE_PDF_RESULT_KEY = 'combine_pdf_result_key'
DEFAULT_VALUES = {
SUBMITTER_INVITATION_EMAIL_KEY => {
+6
View File
@@ -86,4 +86,10 @@ class Submission < ApplicationRecord
ActiveStorage::Blob.proxy_url(audit_trail.blob)
end
alias audit_log_url audit_trail_url
def combined_document_url
return if combined_document.blank?
ActiveStorage::Blob.proxy_url(combined_document.blob)
end
end