Add missing notify_mailer_preview (#19714)

This commit is contained in:
Mac Siri 2023-07-10 16:35:57 -04:00 committed by GitHub
parent 58abc5c30a
commit 8b307db9c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,6 +80,12 @@ class NotifyMailerPreview < ActionMailer::Preview
NotifyMailer.with(name: user.name, email: user.email).account_deleted_email
end
def organization_deleted_email
user = User.last
org = Organization.last
NotifyMailer.with(name: user.name, org_name: org.name, email: user.email).organization_deleted_email
end
def export_email
NotifyMailer.with(user: User.last, attachment: "attachment").export_email
end