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 13 |
# File 'lib/notify_user/channels/action_mailer/action_mailer_channel.rb', line 5 def { subject: "New Notification", aggregate: { subject: "New Notifications" }, description: "Email Notifications" } end |
.deliver(notification, options = {}) ⇒ Object
15 16 17 |
# File 'lib/notify_user/channels/action_mailer/action_mailer_channel.rb', line 15 def deliver(notification, ={}) NotifyUser::NotificationMailer.notification_email(notification, .deep_merge()).deliver end |
.deliver_aggregated(notifications, options = {}) ⇒ Object
19 20 21 |
# File 'lib/notify_user/channels/action_mailer/action_mailer_channel.rb', line 19 def deliver_aggregated(notifications, ={}) NotifyUser::NotificationMailer.aggregate_notifications_email(notifications, .deep_merge()).deliver end |