From 9c2f414531f0c9508d0de45386c47e6d615b794d Mon Sep 17 00:00:00 2001 From: echarp Date: Tue, 1 Jul 2014 22:22:47 +0200 Subject: [PATCH] =?UTF-8?q?La=20notification=20de=20mod=C3=A9ration=20?= =?UTF-8?q?=C3=A9tait=20oubli=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/moderations_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/moderations_controller.rb b/app/controllers/moderations_controller.rb index f48278b0..af93ea92 100644 --- a/app/controllers/moderations_controller.rb +++ b/app/controllers/moderations_controller.rb @@ -37,7 +37,10 @@ class ModerationsController < ApplicationController def accept respond_to do |format| if @moderation.update(moderated: 1) - # Send an update mail to its author + # Send an acceptation mail to its author + EventMailer.accept(@moderation, current_user).deliver + + # Send an acceptation mail to moderators ModerationMailer.accept(@moderation, current_user).deliver format.html { redirect_to moderations_path, notice: t('.ok') }