mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 23:42:32 -05:00
add documents preview endpoint
This commit is contained in:
1 parent
d9f314898b
commit
3ee41975fd
5 files changed
+167
-21
No files matched your search
@@ -55,6 +55,8 @@ class Submission < ApplicationRecord
|
||||
has_one_attached :audit_trail
|
||||
has_one_attached :combined_document
|
||||
|
||||
has_many_attached :preview_documents
|
||||
|
||||
has_many :template_schema_documents,
|
||||
->(e) { where(uuid: (e.template_schema.presence || e.template.schema).pluck('attachment_uuid')) },
|
||||
through: :template, source: :documents_attachments
|
||||
|
||||
Reference in new issue
Block a user