process acro form fields

This commit is contained in:
Alex Turchyn authored and Pete Matsyburka committed 2024-06-28 21:42:39 +03:00
1 parent 320fe02e35
commit 749043dfbb
10 files changed
+374 -17

No files matched your search

@@ -10,7 +10,7 @@ class TemplateDocumentsController < ApplicationController
old_fields_hash = @template.fields.hash
documents = Templates::CreateAttachments.call(@template, params)
documents = Templates::CreateAttachments.call(@template, params, extract_fields: true)
schema = documents.map do |doc|
{ attachment_uuid: doc.uuid, name: doc.filename.base }