1class AdminMailer < ActionMailer::Base |
|
2 default from: ->(email){ Site.email_from } |
|
|
4 def threshold_email_reminder(admin_users, petitions) |
5 @petitions = petitions |
|
6 mail(subject: "Petitions alert", to: admin_users.map(&:email)) |
|
7 end |
|
8end |