Sha256: 7d73a4ce735122a823e69dc1f42a6b6d8fc3512c4d085f9850d505c7c04378a9

Contents?: true

Size: 614 Bytes

Versions: 17

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

17 entries across 17 versions & 1 rubygems

Version Path
notify_user-0.1.4 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.1.3 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.1.2 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.1.1 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.30 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.29 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.28 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.27 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.26 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.25 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.24 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.23 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.22 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.20 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.19 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.18 lib/notify_user/channels/action_mailer/action_mailer_channel.rb
notify_user-0.0.16 lib/notify_user/channels/action_mailer/action_mailer_channel.rb