Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `inline?' for #<Module:0x00000102114998> in Rails 3.1 w/ Ruby 1.9.3 #19

Closed
shedd opened this issue Feb 25, 2012 · 7 comments

Comments

@shedd
Copy link

shedd commented Feb 25, 2012

I'm in the process of upgrading a Rails 2.3.14 app to Rails 3.1. The Rails 2 app successfully used Resque Loner, but whenever the upgraded code attempts to enqueue something, the following error is returned:

undefined method inline?' for #Module:0x00000102114998`

This is the resque portion of the trace:

resque-loner (1.2.0) lib/resque-ext/job.rb:15:in create_with_loner'
resque (1.8.2) lib/resque.rb:191:in enqueue'

Any suggestions on where to look for a fix?

@jayniz
Copy link
Member

jayniz commented Mar 2, 2012

On the road, short response: that's stuff to support inline execution of jobs, like in tests for example. Did you also upgrade resque-loner, or just your project?

@philippbayer
Copy link

Hello,

Curiously, I recently started to get the same error - in resque-loner 1.2.1, using Rails 3.0.10.

Here's the build-log from travis CI: http://travis-ci.org/#!/gedankenstuecke/snpr/builds/1483747
(Ignore the Deprecation-warnings from FactoryGirl please :) )

In prior versions (resque-loner 1.0.1) it works, because job.rb in lib/resque-ext/ doesn't seem to use "inline?".

Should i force an older version of resque-loner for now or is this an issue when Rails' version is < 3.1?

@jayniz
Copy link
Member

jayniz commented May 31, 2012

I guess the problem is, that inline? is not defined in the Resque version you're using. Low on time at the moment, we'd have to see if inline? is a new method that is not present in your Resque version, or an old version that is no longer present in your Resque verison.

@philippbayer
Copy link

We use the newest version on Travis - here's the Gemfile: https://github.com/gedankenstuecke/snpr/blob/master/Gemfile.ci

I now forced the version of resque-loner to an older one to stop the Travis-testsuite-failing-mail-spam, without the ~> '1.0.1', I get the above error

@todddickerson
Copy link

Same issue, 1.9.3, rails 3.2.7, resque 1.10.0, downgrade to 1.0.1 working

@Nowaker
Copy link

Nowaker commented Feb 11, 2014

Resque.inline? has been introduced in resque 1.14.0. Upgrade to get resque-loner working.

@meatballhat
Copy link
Member

Please yell if this is still broken for you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants