Class: ActivityNotification::Mailer
- Inherits:
-
Object
- Object
- ActivityNotification::Mailer
- Includes:
- ActivityNotification::Mailers::Helpers
- Defined in:
- app/mailers/activity_notification/mailer.rb
Overview
Mailer for email notification of ActivityNotificaion.
Instance Method Summary collapse
-
#send_batch_notification_email(target, notifications, batch_key, options = {}) ⇒ Mail::Message|ActionMailer::DeliveryJob
Sends batch notification email.
-
#send_notification_email(notification, options = {}) ⇒ Mail::Message|ActionMailer::DeliveryJob
Sends notification email.
Instance Method Details
#send_batch_notification_email(target, notifications, batch_key, options = {}) ⇒ Mail::Message|ActionMailer::DeliveryJob
Sends batch notification email.
28 29 30 31 32 33 34 |
# File 'app/mailers/activity_notification/mailer.rb', line 28 def send_batch_notification_email(target, notifications, batch_key, = {}) [:fallback] ||= :batch_default if [:fallback] == :none .delete(:fallback) end batch_notification_mail(target, notifications, batch_key, ) end |
#send_notification_email(notification, options = {}) ⇒ Mail::Message|ActionMailer::DeliveryJob
Sends notification email.
12 13 14 15 16 17 18 |
# File 'app/mailers/activity_notification/mailer.rb', line 12 def send_notification_email(notification, = {}) [:fallback] ||= :default if [:fallback] == :none .delete(:fallback) end notification_mail(notification, ) end |