add download combined pdf button

This commit is contained in:
Pete Matsyburka
2024-05-25 20:57:36 +03:00
parent fc60df7974
commit 9866e5468c
8 changed files with 209 additions and 73 deletions
+1
View File
@@ -52,6 +52,7 @@ class Submission < ApplicationRecord
attribute :slug, :string, default: -> { SecureRandom.base58(14) }
has_one_attached :audit_trail
has_one_attached :combined_document
has_many :template_schema_documents,
->(e) { where(uuid: (e.template_schema.presence || e.template.schema).pluck('attachment_uuid')) },