allow to add multiple emails per submitter

This commit is contained in:
Alex Turchyn
2023-09-16 13:46:47 +03:00
parent ef618f8f49
commit f89c50d096
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ class Submitter < ApplicationRecord
end
def friendly_name
if name.present?
if name.present? && email.present? && email.exclude?(',')
"#{name} <#{email}>"
else
email