add download combined pdf button

This commit is contained in:
Pete Matsyburka committed 2024-05-26 11:43:47 +03:00
1 parent fc60df7974
commit 9866e5468c
8 files changed
+209 -73

No files matched your search

+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')) },