views:

141

answers:

1

After deploying DelayedJob as a gem, I got the following error:

undefined method `handle_asynchronously' for #<Class:0x4601b08>

Same code works when I deploy DelayedJob as a plugin.

I have tried the solution suggested by this SO question and I still get the same error.

I am using DelayedJob 1.8.4, Windows XP, Rails 2.3.5.

+1  A: 

I had a model called DelayedJob in my models directory. I added this model to query the job queue. This conflicted with the delayed_job.rb file. I renamed the file and the problem went away.

KandadaBoggu