From eb216c9dbe8a0b7cf8acec2011a59124440d67e0 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Mon, 19 Oct 2015 20:19:28 +0300 Subject: [PATCH] Specify correct conference host --- app/views/event_mailer/confirmation_request.bg.text.erb | 2 +- app/views/event_mailer/confirmation_request.en.text.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/event_mailer/confirmation_request.bg.text.erb b/app/views/event_mailer/confirmation_request.bg.text.erb index 4a899eb..7ec03f4 100644 --- a/app/views/event_mailer/confirmation_request.bg.text.erb +++ b/app/views/event_mailer/confirmation_request.bg.text.erb @@ -7,7 +7,7 @@ <% end %> Моля, потвърдете участието си възможно най-скоро като кликнете на следния линк: -<%= confirm_event_url @event, host: Event.last.conference.host_name, protocol: 'https' %> +<%= confirm_event_url @event, host: @event.conference.host_name, protocol: 'https' %> Отговорете на този email, ако възникнат някакви въпроси. diff --git a/app/views/event_mailer/confirmation_request.en.text.erb b/app/views/event_mailer/confirmation_request.en.text.erb index 2cfe2ab..bf7094d 100644 --- a/app/views/event_mailer/confirmation_request.en.text.erb +++ b/app/views/event_mailer/confirmation_request.en.text.erb @@ -7,7 +7,7 @@ It has not been scheduled yet. <% end %> Please confirm your participation as soon as you can by following the following link: -<%= confirm_event_url @event, host: Event.last.conference.host_name, protocol: 'https' %> +<%= confirm_event_url @event, host: @event.conference.host_name, protocol: 'https' %> Please respond to this email in case you have any questions.