Class: Chaskiq::MailSenderJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- Chaskiq::MailSenderJob
- Defined in:
- app/jobs/chaskiq/mail_sender_job.rb
Instance Method Summary collapse
-
#perform(campaign) ⇒ Object
send to all list with state passive & subscribed.
Instance Method Details
#perform(campaign) ⇒ Object
send to all list with state passive & subscribed
7 8 9 10 11 12 |
# File 'app/jobs/chaskiq/mail_sender_job.rb', line 7 def perform(campaign) campaign.apply_premailer campaign.list.subscriptions.availables.each do |s| campaign.push_notification(s) end end |