La notification de modération était oubliée

This commit is contained in:
echarp 2014-07-01 22:22:47 +02:00
parent f600f58251
commit 9c2f414531

View File

@ -37,7 +37,10 @@ class ModerationsController < ApplicationController
def accept def accept
respond_to do |format| respond_to do |format|
if @moderation.update(moderated: 1) 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 ModerationMailer.accept(@moderation, current_user).deliver
format.html { redirect_to moderations_path, notice: t('.ok') } format.html { redirect_to moderations_path, notice: t('.ok') }