Fix the build.

This commit is contained in:
Guo Xiang Tan 2018-10-11 10:45:01 +08:00
parent c29a4dddc1
commit c92bda95e1
1 changed files with 6 additions and 4 deletions

View File

@ -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