From 72b7787003048ec2319078500240430653bec275 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sat, 27 May 2023 22:36:10 +0300 Subject: [PATCH] Update volunteer mailer subject --- app/mailers/volunteer_mailer.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/mailers/volunteer_mailer.rb b/app/mailers/volunteer_mailer.rb index e526ff0..13bc132 100644 --- a/app/mailers/volunteer_mailer.rb +++ b/app/mailers/volunteer_mailer.rb @@ -2,8 +2,10 @@ class VolunteerMailer < ActionMailer::Base def team_notification(new_volunteer) @volunteer = new_volunteer - mail(to: @volunteer.conference.email, - subject: "Нов доброволец – #{@volunteer.name} <#{@volunteer.email}> за екип(и) #{@volunteer.volunteer_teams.map(&:name).join(", ")}") + mail( + to: @volunteer.conference.email, + subject: "Нов доброволец за #{@volunteer.conference.title}" + ) end def volunteer_notification(new_volunteer)