Update volunteer mailer subject

This commit is contained in:
Petko Bordjukov 2023-05-27 22:36:10 +03:00
parent c04be87f53
commit 72b7787003
1 changed files with 4 additions and 2 deletions

View File

@ -2,8 +2,10 @@ class VolunteerMailer < ActionMailer::Base
def team_notification(new_volunteer) def team_notification(new_volunteer)
@volunteer = new_volunteer @volunteer = new_volunteer
mail(to: @volunteer.conference.email, mail(
subject: "Нов доброволец #{@volunteer.name} <#{@volunteer.email}> за екип(и) #{@volunteer.volunteer_teams.map(&:name).join(", ")}") to: @volunteer.conference.email,
subject: "Нов доброволец за #{@volunteer.conference.title}"
)
end end
def volunteer_notification(new_volunteer) def volunteer_notification(new_volunteer)