Sha256: 2594e68eeb088057969b76c60efe359150087142695337107fcadb33bb7eb40e
Contents?: true
Size: 659 Bytes
Versions: 1
Compression:
Stored size: 659 Bytes
Contents
if defined?(ActionMailer) # Mailer for email notification of ActivityNotificaion. class ActivityNotification::Mailer < ActivityNotification.config.parent_mailer.constantize include ActivityNotification::Mailers::Helpers # Sends notification email. # @param [Notification] notification Notification instance to send email def send_notification_email(notification) if notification.target.notification_email_allowed?(notification.notifiable, notification.key) and notification.notifiable.notification_email_allowed?(notification.target, notification.key) notification_mail(notification) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activity_notification-0.0.10 | app/mailers/activity_notification/mailer.rb |