sends emails to all reviewers on new comment

This commit is contained in:
Mark Moser
2017-02-14 11:32:39 -06:00
parent a8c42af3de
commit 2424fa021f
8 changed files with 60 additions and 1 deletions

View File

@ -23,6 +23,8 @@ module Admin
else
{ error: "Failed to save comment" }
end
ReviewerMailer.new_comment(comment).deliver_later if comment.persisted?
redirect_to admin_result_path(params[:test_hash]), flash: flash_message
end