Class: ActionMailerChannel
- Inherits:
-
Object
- Object
- ActionMailerChannel
- Defined in:
- lib/notify_user/channels/action_mailer/action_mailer_channel.rb
Class Method Summary collapse
- .default_options ⇒ Object
- .deliver(notification, options = {}) ⇒ Object
- .deliver_aggregated(notifications, options = {}) ⇒ Object
Class Method Details
.default_options ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/notify_user/channels/action_mailer/action_mailer_channel.rb', line 5 def { subject: "New Notification", aggregate: { subject: "New Notifications" } } end |
.deliver(notification, options = {}) ⇒ Object
14 15 16 |
# File 'lib/notify_user/channels/action_mailer/action_mailer_channel.rb', line 14 def deliver(notification, ={}) NotifyUser::NotificationMailer.notification_email(notification, .deep_merge()).deliver end |
.deliver_aggregated(notifications, options = {}) ⇒ Object
18 19 20 |
# File 'lib/notify_user/channels/action_mailer/action_mailer_channel.rb', line 18 def deliver_aggregated(notifications, ={}) NotifyUser::NotificationMailer.aggregate_notifications_email(notifications, .deep_merge()).deliver end |