Forum: Ruby on Rails Send email with delayed job

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
E46593732261d73ee99adc380b7f767a?d=identicon&s=25 Greg Ma (gregorylepacha)
on 2011-01-06 21:46
I want to send email with delayed job.
In order to do so, I have a Notifier model with X methods sending
different type of emails.

In the documentation, they suggest to send email like this:
class NewsletterJob <, :emails)
    def perform
      emails.each { |e| NewsletterMailer.deliver_text_to_email(text, e)

But in my notifier model I have X methods, does it mean I have to create
a different Struc for each methods?

djangst (Guest)
on 2011-01-06 21:54
(Received via mailing list)
Dumb question: wouldn't you just change the parameter(s) when you call
This topic is locked and can not be replied to.