Create new email template for new evaluation comment created and add it to system_emails view
This commit is contained in:
@@ -120,6 +120,13 @@ class Mailer < ApplicationMailer
|
||||
mail(to: @email_to, from: @newsletter.from, subject: @newsletter.subject)
|
||||
end
|
||||
|
||||
def evaluation_comment(comment, to)
|
||||
@email = EvaluationCommentEmail.new(comment)
|
||||
@email_to = to
|
||||
|
||||
mail(to: @email_to.email, subject: @email.subject) if @email.can_be_sent?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def with_user(user, &block)
|
||||
|
||||
Reference in New Issue
Block a user