Sha256: e8ff7127b6b2d3000b50b690b3155dc53bfc6126eb1de94730cb0817b582f963
Contents?: true
Size: 690 Bytes
Versions: 9
Compression:
Stored size: 690 Bytes
Contents
class Mailboxer::NotificationMailer < Mailboxer::BaseMailer #Sends and 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
9 entries across 9 versions & 1 rubygems