Thanks for the pointers yall.
I am probably going to run with Scenario #2.
Looking at John's code I can see how the mails get sent at the
appropriate time, but can I also assume that I can fill up another
attribute within that method? For all three attributes I described, I
envision something like this.
$scheduler.schedule "0 12 * * *" do
Album.find_all_by_exclusive_on(today()).each do |album|
album.promo_on = Time.one_week_from now (not sure how to write
this yet)
send_exclusive_mail_to_djs(album)
end
Album.find_all_by_promo_on(today()).each do |album|
album.release_on = Time.one_week_from now
send_promo_mail_to_subscribers(album)
end
Album.find_all_by_release_on(today()).each do |album|
send_release_mail_to_subscribers(album)
end
end
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OpenWFEru users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---