Skip to content

Commit 13ff054

Browse files
Add a space between the subject prefix and the subject
Co-authored-by: Stephen Margheim <[email protected]>
1 parent 737e4b1 commit 13ff054

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/mailers/solid_errors/error_mailer.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ def error_occurred(occurrence)
55
@occurrence = occurrence
66
@error = occurrence.error
77
subject = "#{@error.severity_emoji} #{@error.exception_class}"
8-
subject.prepend(SolidErrors.email_subject_prefix) if SolidErrors.email_subject_prefix.present?
8+
if SolidErrors.email_subject_prefix.present?
9+
subject = [SolidErrors.email_subject_prefix, subject].join(" ").squish!
10+
end
911
mail(
1012
subject: subject,
1113
from: SolidErrors.email_from,

0 commit comments

Comments
 (0)