mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
add dynamic documents
This commit is contained in:
1 parent
b50d982497
commit
37196ff89f
65 files changed
+4372
-485
No files matched your search
@@ -8,6 +8,10 @@ ActiveSupport.on_load(:active_storage_attachment) do
|
||||
def signed_uuid
|
||||
@signed_uuid ||= ApplicationRecord.signed_id_verifier.generate(uuid, expires_in: 6.hours, purpose: :attachment)
|
||||
end
|
||||
|
||||
def signed_key
|
||||
@signed_key ||= ApplicationRecord.signed_id_verifier.generate([id, uuid], expires_in: 6.hours, purpose: :attachment)
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:disable Metrics/BlockLength
|
||||
|
||||
Reference in new issue
Block a user