Misc spec/refactor to user mailer and user mailer spec (#27486)

This commit is contained in:
Matt Jankowski 2023-10-27 05:57:16 -04:00 committed by KMY(雪あすか)
parent 58d305d6d7
commit c51e2f7e38
4 changed files with 65 additions and 51 deletions

View file

@ -20,7 +20,7 @@ class Admin::Disputes::AppealsController < Admin::BaseController
authorize @appeal, :approve?
log_action :reject, @appeal
@appeal.reject!(current_account)
UserMailer.appeal_rejected(@appeal.account.user, @appeal)
UserMailer.appeal_rejected(@appeal.account.user, @appeal).deliver_later
redirect_to disputes_strike_path(@appeal.strike)
end