Sha256: 71bafeb10dd547221b08d7001efc2a21e240970e283a5d586783c45bf33fac10
Contents?: true
Size: 774 Bytes
Versions: 11
Compression:
Stored size: 774 Bytes
Contents
class ActivityNotification::MailerPreview < ActionMailer::Preview def send_notification_email_single target_notification = ActivityNotification::Notification.where(group: nil).first ActivityNotification::Mailer.send_notification_email(target_notification) end def send_notification_email_with_group target_notification = ActivityNotification::Notification.where.not(group: nil).first ActivityNotification::Mailer.send_notification_email(target_notification) end def send_batch_notification_email target = User.find_by_name('Ichiro') target_notifications = target.notification_index_with_attributes(filtered_by_key: 'comment.default') ActivityNotification::Mailer.send_batch_notification_email(target, target_notifications) end end
Version data entries
11 entries across 11 versions & 1 rubygems