automatically send emails when all parties completed the form

This commit is contained in:
Alex Turchyn
2023-09-09 00:43:32 +03:00
parent 2fab6984ea
commit 80ad166fd9
9 changed files with 86 additions and 42 deletions
+8
View File
@@ -57,6 +57,14 @@ class Submitter < ApplicationRecord
end
end
def friendly_name
if name.present?
"#{name} <#{email}>"
else
email
end
end
def status_event_at
completed_at || opened_at || sent_at || created_at
end