Fix the build.
This commit is contained in:
parent
c29a4dddc1
commit
c92bda95e1
|
@ -484,9 +484,11 @@ module Email
|
|||
end
|
||||
|
||||
def subject
|
||||
@subject ||= begin
|
||||
mail_subject = @mail.subject.delete("\u0000")
|
||||
mail_subject.presence || I18n.t("emails.incoming.default_subject", email: @from_email)
|
||||
@subject ||=
|
||||
if mail_subject = @mail.subject
|
||||
mail_subject.delete("\u0000")
|
||||
else
|
||||
I18n.t("emails.incoming.default_subject", email: @from_email)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue