fix: invite_mailer previews
This commit is contained in:
parent
6cba489a54
commit
ba805a7436
1 changed files with 6 additions and 1 deletions
|
@ -15,10 +15,15 @@ class InviteMailerPreview < ActionMailer::Preview
|
|||
dossier: dossier,
|
||||
user: invited_user,
|
||||
email: invited_user.email,
|
||||
email_sender: 'sender@gouv.fr'
|
||||
email_sender: 'sender@gouv.fr',
|
||||
targeted_user_link: targeted_user_link
|
||||
)
|
||||
end
|
||||
|
||||
def targeted_user_link
|
||||
TargetedUserLink.new(id: SecureRandom.uuid)
|
||||
end
|
||||
|
||||
def dossier
|
||||
Dossier.new(procedure: procedure)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue