Forum: Ruby on Rails Send email with delayed job

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?

C2b69b81423cc41257b4afa40d860a09?d=identicon&s=25 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
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.