From 9d710336b3d8040629ef68a3f6831d3b8a3e2749 Mon Sep 17 00:00:00 2001 From: Simon Lehericey Date: Mon, 6 Mar 2017 15:44:38 +0100 Subject: [PATCH] MailTemplate: allow edition of all the new mails --- app/controllers/admin/mail_templates_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/admin/mail_templates_controller.rb b/app/controllers/admin/mail_templates_controller.rb index 0d3b5e71a..7c94d4a0f 100644 --- a/app/controllers/admin/mail_templates_controller.rb +++ b/app/controllers/admin/mail_templates_controller.rb @@ -18,7 +18,8 @@ class Admin::MailTemplatesController < AdminController private def mails - [@procedure.initiated_mail] + %w(initiated received closed refused without_continuation) + .map { |name| @procedure.send(name + "_mail") } end def find_the_right_mail type