mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
allow to upload user initials
This commit is contained in:
1 parent
f6c061a57b
commit
e9a759055b
8 files changed
+126
No files matched your search
@@ -36,6 +36,14 @@ module Submitters
|
||||
user.first_name
|
||||
elsif field_name == 'last name'
|
||||
user.last_name
|
||||
elsif field['type'] == 'initials' && (initials = UserConfigs.load_initials(user))
|
||||
attachment = ActiveStorage::Attachment.find_or_create_by!(
|
||||
blob_id: initials.blob_id,
|
||||
name: 'attachments',
|
||||
record: submitter
|
||||
)
|
||||
|
||||
attachment.uuid
|
||||
elsif field['type'] == 'signature' && (signature = UserConfigs.load_signature(user))
|
||||
attachment = ActiveStorage::Attachment.find_or_create_by!(
|
||||
blob_id: signature.blob_id,
|
||||
|
||||
Reference in new issue
Block a user