Sha256: 657cdd2874054a5efc212cc7e54ae7d3833cf390cdd72fb28e26402e2a427546
Contents?: true
Size: 890 Bytes
Versions: 1
Compression:
Stored size: 890 Bytes
Contents
module NotifyUser class NotificationMailer < ActionMailer::Base 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 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
notify_user-0.0.1 | app/mailers/notify_user/notification_mailer.rb |