9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'app/mailers/decidim/surveys/survey_confirmation_mailer.rb', line 9
def confirmation(user, questionnaire, answers)
return if answers.blank? || user.nil?
with_user(user) do
@user = user
@questionnaire_title = translated_attribute(questionnaire.title)
@participatory_space_title = translated_attribute(questionnaire.questionnaire_for.component.participatory_space.title)
@organization = user.organization
add_file_with_answers(answers)
mail(to: "#{@user.name} <#{@user.email}>", subject: t(".subject", questionnaire_title: @questionnaire_title))
end
end
|