add dynamic documents

This commit is contained in:
Pete Matsyburka committed 2026-03-04 10:13:30 +02:00
1 parent b50d982497
commit 37196ff89f
65 files changed
+4372 -485

No files matched your search

+4
View File
@@ -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