Sha256: cf4055982ccc4a8cfb9b52661edf9d60c22c757cd6a5ee235c00dc8710890c4d

Contents?: true

Size: 614 Bytes

Versions: 9

Compression:

Stored size: 614 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

9 entries across 9 versions & 1 rubygems

Version Path
notify_user-0.0.15 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.14 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.12 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.10 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.9 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.8 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.7 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.6 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.5 lib/notify_user/channels/action_mailer/action_mailer_channel.rb