NameError (uninitialized constant Delayed::Job): #53

Open
vanboom opened this Issue Jan 7, 2012 · 13 comments

Projects

None yet
@vanboom
vanboom commented Jan 7, 2012

I'm getting this error when using the delayed_job 3.0.0 gem...

NameError (uninitialized constant Delayed::Job):

Everything works great when I force delayed_job, 2.1.4 in my Gemfile.

I'm using rails 3.1.1.

Thanks for a great gem!

@justinwiley

+1, I'm seeing this as well after moving from 2.1.4 to 3.0.0. The exception is triggered when using the "delay" proxy, as in: article.delay.update_comments. I tried using the "send_later" form as per the documentation, but that triggers deprecation warnings.

@chagel
chagel commented Jan 19, 2012

+1 when gem update
delayed_job 2.1.4 to 3.0.0

NameError (uninitialized constant Delayed::DelayProxy::Job):

@charles-luv

+1 when gem update

@betamatt

2.0 and higher versions of DelayedJob don't come from this repository. Try here: https://github.com/collectiveidea/delayed_job

@joemsak
joemsak commented Feb 3, 2012

Request to have this source's description and/or readme to link to the new official source

@maedi
maedi commented Mar 16, 2012

+1 for linking to the new source

@jjb
jjb commented Mar 27, 2012

I submitted a patch to the readme for this: #50/

@jpatokal
jpatokal commented Apr 3, 2012

So for others who just want to fix this issue, the key is to simply replace gem 'delayed_job' in your Gemfile with this:

gem 'delayed_job_active_record'

Or if you happen to be using Mongoid:

gem 'delayed_job_mongoid'

These will pull in the latest delayed_job with its dependencies, and everything should Just Work(tm).

@fholgado
fholgado commented Apr 4, 2012

@jpatokal thanks for the fix, worked like a charm :)

@damien
damien commented May 15, 2012

@jpatokal Worked for me, thanks!

@lesonapt

Thanks @jpatokal . it worked

@eddiefisher

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment