adjust wording

This commit is contained in:
Oleksandr Turchyn authored and Oleksandr Turchyn committed 2024-09-23 11:45:07 +03:00
1 parent f7a8e4102b
commit f1e494b669
8 files changed
+144 -34

No files matched your search

+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