mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
refactor prefill
This commit is contained in:
1 parent
439f95d87e
commit
2d6f4c521e
13 files changed
+247
-128
No files matched your search
@@ -129,6 +129,13 @@ module Submitters
|
||||
ActiveStorage::Attachment.create!(blob:, name: 'attachments', record: submitter)
|
||||
end
|
||||
|
||||
def build_prefill_attachment_data(submitter, attachment)
|
||||
token = ApplicationRecord.signed_id_verifier.generate([attachment.uuid, submitter.slug],
|
||||
purpose: :prefill_attachment)
|
||||
|
||||
{ token:, url: attachment.url }
|
||||
end
|
||||
|
||||
def normalize_preferences(account, user, params)
|
||||
preferences = {}
|
||||
|
||||
|
||||
Reference in new issue
Block a user