touch signature attachment

This commit is contained in:
Pete Matsyburka
2026-02-02 12:46:34 +02:00
parent 80be5d2cf5
commit ee2400a5c5
3 changed files with 31 additions and 1 deletions
+4
View File
@@ -48,6 +48,10 @@ module Submitters
maybe_set_signature_reason!(values, submitter, params)
validate_values!(values, submitter, params, request)
if (touch_attachment_uuid = params[:touch_attachment_uuid].presence)
ActiveStorage::Attachment.where(uuid: touch_attachment_uuid, record: submitter).touch_all(:created_at)
end
SubmissionEvents.create_with_tracking_data(submitter, 'complete_form', request) if params[:completed] == 'true'
submitter.save!