railscasts/episode-171 — Issue #1: undefined method 'deliver'
Author: cricketgeek
Created: 2012-01-11 04:11:49+00:00
State: open

Pretty sure this is an issue with delayed_job, but thought you would want to know in case it's not just something stupid I'm doing.
Found https://github.com/collectiveidea/delayed_job/issues/331 opened 20 hours ago which seems very similar.

Running the after version of mailit in rails 3.1.3, rvm and ruby 1.9.2p136 and
daemons (1.1.2)
delayed_job (3.0.0)
activesupport (~> 3.0)
delayed_job_active_record (0.3.1)
activerecord (> 2.1.0)
delayed_job (~> 3.0.0)
delayed_job_web (1.0.3)

the deliver method never gets invoked correctly. I first tried something similar with my own test app in ruby 1.8.7 and then switched to ruby 1.9.2 and cloned episode-171 repo and came up with the same exact exception with the stack trace

ID
12 Retry or Remove
Priority
0
Attempts
3
Handler
--- !ruby/object:Delayed::PerformableMethod args: - "2" method_name: :deliver object: !ruby/class Newsletter
Last Error
Toggle full message
{undefined method `deliver' for Class:Class /Users/cricketgeek/.rvm/gems/ruby-1.9.2-p136/gems/delayed_job-3.0.0/lib/delayed/performable_method.rb:22:in `perform' /Users/cricketgeek/.rvm/gems/ruby-1.9.2-p136/gems/delayed_job-3.0.0/lib/delayed/backend/base.rb:94

actual console stack trace
'{undefined method `deliver'' for Class:Class
/Users/cricketgeek/.rvm/gems/ruby-1.9.2-p136/gems/delayed_job-3.0.0/lib/delayed/performable_method.rb:22:in `perform''
/Users/cricketgeek/.rvm/gems/ruby-1.9.2-p136/gems/delayed_job-3.0.0/lib/delayed/backend/base.rb:94:in `block in invoke_job''