mirror of
https://github.com/Evolix/chexpire.git
synced 2024-05-07 02:58:39 +02:00
Fixed preview of email notifications
This commit is contained in:
parent
77c26264f0
commit
ce143201b5
|
@ -6,13 +6,17 @@ class NotificationsMailerPreview < ActionMailer::Preview
|
||||||
# Preview this email at http://localhost:3000/rails/mailers/notifications_mailer/domain_expires_soon
|
# Preview this email at http://localhost:3000/rails/mailers/notifications_mailer/domain_expires_soon
|
||||||
def domain_expires_soon
|
def domain_expires_soon
|
||||||
check = Check.domain.first
|
check = Check.domain.first
|
||||||
NotificationsMailer.with(notification: check.notifications.first).domain_expires_soon
|
NotificationsMailer
|
||||||
|
.with(check_notification: check.check_notifications.first)
|
||||||
|
.domain_expires_soon
|
||||||
end
|
end
|
||||||
|
|
||||||
# Preview this email at http://localhost:3000/rails/mailers/notifications_mailer/ssl_expires_soon
|
# Preview this email at http://localhost:3000/rails/mailers/notifications_mailer/ssl_expires_soon
|
||||||
def ssl_expires_soon
|
def ssl_expires_soon
|
||||||
check = Check.ssl.first
|
check = Check.ssl.first
|
||||||
NotificationsMailer.with(notification: check.notifications.first).ssl_expires_soon
|
NotificationsMailer
|
||||||
|
.with(check_notification: check.check_notifications.first)
|
||||||
|
.ssl_expires_soon
|
||||||
end
|
end
|
||||||
|
|
||||||
# Preview this email at http://localhost:3000/rails/mailers/notifications_mailer/recurrent_failures
|
# Preview this email at http://localhost:3000/rails/mailers/notifications_mailer/recurrent_failures
|
||||||
|
|
Loading…
Reference in a new issue