Class: ActivityNotification::Mailer

Inherits:
Object
  • Object
show all
Includes:
ActivityNotification::Mailers::Helpers
Defined in:
app/mailers/activity_notification/mailer.rb

Instance Method Summary collapse

Instance Method Details

#send_notification_email(notification) ⇒ Object



5
6
7
8
9
10
# File 'app/mailers/activity_notification/mailer.rb', line 5

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