Sha256: c3495972a02b51e2f12b8ca6e5bf75871357cec57e974d9e1af120309be28fce
Contents?: true
Size: 973 Bytes
Versions: 20
Compression:
Stored size: 973 Bytes
Contents
module NotifyUser class NotificationMailer < ActionMailer::Base helper NotifyUser::ApplicationHelper layout "notify_user/layouts/action_mailer" def notification_email(notification, options) @notification = notification mail to: notification.target.email, subject: options[:subject], template_name: "notification", template_path: "notify_user/action_mailer", from: NotifyUser.mailer_sender end def aggregate_notifications_email(notifications, options) @notifications = notifications @notification = notifications.first mail to: @notifications.first.target.email, template_name: "aggregate_notification", template_path: ["notify_user/#{notifications.first.class.name.underscore}/action_mailer", "notify_user/action_mailer"], subject: options[:aggregate][:subject], from: NotifyUser.mailer_sender end protected end end
Version data entries
20 entries across 20 versions & 1 rubygems