Sha256: 63ca7f224a354ac7ef3f37a37f752ee40b87819b2caabbaf05a74712b778e2d8

Contents?: true

Size: 570 Bytes

Versions: 1

Compression:

Stored size: 570 Bytes

Contents

class ActionMailerChannel

  class << self

    def default_options
      {
        subject: "New Notification",
        aggregate: {
          subject: "New 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

1 entries across 1 versions & 1 rubygems

Version Path
notify_user-0.0.1 lib/notify_user/channels/action_mailer/action_mailer_channel.rb