I'm trying to create a win32-service (ruby script with Rails environment) utilizing the Daemon class and it currently prematurely exits when it encounters a method of mine that calls a delivery via ActionMailer.
Here is the process: Windows Service (Ruby script Daemon class) | v MyModel.save (from within the Ruby script via requiring the Rails environment) | v after_create :deliver_notification This causes my Daemon to exit. Has anyone tried anything similar? I've tried breaking the MyModel.save off onto another thread with no luck. I don't know if the problem is the time required to deliver the message or if it's because ActionMailer uses its own Daemon. Anyone have any thoughts? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

