1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-26 15:52:20 +01:00
fab-manager/spec/mailers/previews/notifications_mailer_preview.rb
2016-03-23 18:39:41 +01:00

8 lines
265 B
Ruby

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