La notification de modération était oubliée
This commit is contained in:
parent
f600f58251
commit
9c2f414531
@ -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') }
|
||||||
|
Loading…
Reference in New Issue
Block a user