From 7c847ed56b2fb3c3e3d20e8d2ac547e5e15d8ffe Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 4 Aug 2020 17:13:30 +0800 Subject: [PATCH] fix error --- app/models/concerns/venue_link_file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/venue_link_file.rb b/app/models/concerns/venue_link_file.rb index 40c36ea..4a6fd0c 100644 --- a/app/models/concerns/venue_link_file.rb +++ b/app/models/concerns/venue_link_file.rb @@ -50,7 +50,7 @@ module VenueLinkFile template:"email/reminder_email.html.erb", mail_sentdate: send_time, mail_subject: title, - template_data:{'title'=>title,'send_time'=>send_time,'locale'=>I18n.locale}) + template_data:{'title'=>title,'send_time'=>self.send(v.name),'locale'=>I18n.locale}) self.venue_management_emails << VenueManagementEmail.new(email_id: new_email.id) end end