Sha256: 27164ec76b69cc78ac40b60d91293c3b96458f6de9368a732a1ebbb6cc9d3cf1
Contents?: true
Size: 689 Bytes
Versions: 3
Compression:
Stored size: 689 Bytes
Contents
class Mailboxer::NotificationMailer < Mailboxer::BaseMailer #Sends an email for indicating a new notification to a receiver. #It calls new_notification_email. def send_email(notification, receiver) new_notification_email(notification, receiver) end #Sends an email for indicating a new message for the receiver def new_notification_email(notification, receiver) @notification = notification @receiver = receiver set_subject(notification) mail :to => receiver.send(Mailboxer.email_method, notification), :subject => t('mailboxer.notification_mailer.subject', :subject => @subject), :template_name => 'new_notification_email' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mailboxer-0.15.1 | app/mailers/mailboxer/notification_mailer.rb |
mailboxer-0.15.0 | app/mailers/mailboxer/notification_mailer.rb |
mailboxer-0.14.0 | app/mailers/mailboxer/notification_mailer.rb |