La notification de modération était oubliée

recurrent
echarp 9 years ago
parent f600f58251
commit 9c2f414531
  1. 5
      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') }

Loading…
Cancel
Save