Skip to content

Commit

Permalink
Use concern
Browse files Browse the repository at this point in the history
  • Loading branch information
hunchr committed Sep 25, 2024
1 parent 3da670b commit b2a5735
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions app/mailers/event/survey_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,15 @@ class Event::SurveyMailer < ApplicationMailer
def survey(course, participation)
@course = course
@participation = participation
@person = participation.person
headers[:bcc] = course.groups.first.course_admin_email
locales = course.language.split("_")

compose_multilingual(participation.person, SURVEY, locales)
compose_multilingual(@person, SURVEY, locales)
end

private

def placeholder_recipient_name
@participation.person.greeting_name
end

def placeholder_application_url
link_to(group_event_participation_url(
group_id: @course.group_ids.first,
event_id: @course.id,
id: @participation.id
))
end

def placeholder_person_url
link_to(person_url(@participation.person))
end

def placeholder_survey_link
@course.link_survey
end
Expand Down

0 comments on commit b2a5735

Please sign in to comment.