Sha256: dbb2dfc7e9a53de0cc1af44b7cebfbc512502316d0296f86b235785cc0e38b23
Contents?: true
Size: 610 Bytes
Versions: 2
Compression:
Stored size: 610 Bytes
Contents
class ActionMailerChannel class << self def default_options { subject: "New Notification", aggregate: { subject: "New Notifications" }, description: "Email Notifications" } end def deliver(notification, options={}) NotifyUser::NotificationMailer.notification_email(notification, default_options.deep_merge(options)).deliver end def deliver_aggregated(notifications, options={}) NotifyUser::NotificationMailer.aggregate_notifications_email(notifications, default_options.deep_merge(options)).deliver end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
notify_user-0.3.2 | lib/notify_user/channels/action_mailer/action_mailer_channel.rb |
notify_user-0.3.1 | lib/notify_user/channels/action_mailer/action_mailer_channel.rb |