From 7c46fbd6ace4bbb774e20baaff6edacb46574e2c Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 20 May 2020 17:42:39 +0800 Subject: [PATCH] fix error --- app/helpers/admin/property_hires_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/admin/property_hires_helper.rb b/app/helpers/admin/property_hires_helper.rb index 290d2d8..d0b1835 100644 --- a/app/helpers/admin/property_hires_helper.rb +++ b/app/helpers/admin/property_hires_helper.rb @@ -75,7 +75,7 @@ module Admin::PropertyHiresHelper module_app_key:"property_hire", template:"email/#{field_name}_email.html.erb", mail_sentdate: send_date || Time.current, - mail_subject: t("seminar.email_#{field_name}_success"), + mail_subject: I18n.t("seminar.email_#{field_name}_success"), template_data:{'property_id'=>property_id,'content'=>content,'locale'=>I18n.locale.to_s,'hire_id'=>hire_id}) elsif !(email_set[0].disabled) mail = Email.create(mail_to: Array(email),