adjust wording

This commit is contained in:
Oleksandr Turchyn
2024-09-18 15:46:39 +03:00
committed by Oleksandr Turchyn
parent f7a8e4102b
commit f1e494b669
8 changed files with 144 additions and 34 deletions
+8
View File
@@ -96,4 +96,12 @@ class Submitter < ApplicationRecord
def status_event_at
declined_at || completed_at || opened_at || sent_at || created_at
end
def with_signature_fields?
@with_signature_fields ||= begin
fields = submission.template_fields || template.fields
signature_field_types = %w[signature initials]
fields.any? { |f| f['submitter_uuid'] == uuid && signature_field_types.include?(f['type']) }
end
end
end