Includes the document number and type in the verification email

This commit is contained in:
kikito
2015-10-02 18:40:24 +02:00
parent 8a1b01e985
commit 9e05a3283c
5 changed files with 13 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
class Mailer < ApplicationMailer
helper :text_with_links
helper :mailer
helper :user
def comment(comment)
@comment = comment
@@ -16,10 +17,12 @@ class Mailer < ApplicationMailer
mail(to: @recipient.email, subject: t('mailers.reply.subject')) if @commentable.present? && @recipient.present?
end
def email_verification(user, recipient, token)
def email_verification(user, recipient, token, document_type, document_number)
@user = user
@recipient = recipient
@token = token
@document_type = document_type
@document_number = document_number
mail(to: @recipient, subject: t('mailers.email_verification.subject'))
end