I am working to find out how user delayed_job is in my rails 3+ heroku app.
I currently have the following on-demand emails (not a deferred task), but it works!
UserMailer.conversation_notification(record.commentable, participant, record, @comments).deliver
I updated this to start using delayed_job:
Delayed::Job.enqueue UserMailer.conversation_notification(record.commentable, participant, record, @comments).deliver
But this is error'd with: "ArgumentError (cannot expose objects that do not respond):"
I also tried:
UserMailer.delay.conversation_notification(record.commentable, participant, record, @comments)
But this error is with:
NoMethodError (undefined method `delay' for UserMailer:Class):
Is there any detained guru there? Thanks
source share