1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-05 00:52:22 +01:00
fab-manager/spec/mailers/previews/notifications_mailer_preview.rb

8 lines
265 B
Ruby
Raw Normal View History

2016-03-23 18:39:41 +01:00
class NotificationsMailerPreview < ActionMailer::Preview
NotificationType::NAMES.each do |name|
define_method name do
NotificationsMailer.send_mail_by(Notification.where(notification_type_id: NotificationType.find_by_name(name)).last)
end
end
end