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,10 +484,12 @@ 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)
end
@subject ||=
if mail_subject = @mail.subject
mail_subject.delete("\u0000")
else
I18n.t("emails.incoming.default_subject", email: @from_email)
end
end
def find_user(email)