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

uninitialized constant ResqueDelay::DelayProxy::Resque #1

Open
akicho8 opened this issue Sep 16, 2012 · 0 comments
Open

uninitialized constant ResqueDelay::DelayProxy::Resque #1

akicho8 opened this issue Sep 16, 2012 · 0 comments

Comments

@akicho8
Copy link

akicho8 commented Sep 16, 2012

uninitialized constant ResqueDelay::DelayProxy::Resque
resque-delay (0.5.0) lib/resque_delay/message_sending.rb:13:in `method_missing'

It is an error that it can not find the document as you run Resque

I have a small piece of code to reproduce the same error.

require 'active_support/basic_object'

module Resque; end

class DelayProxy < ActiveSupport::BasicObject
  def method_missing(method, *args)
    Resque
  end
end

DelayProxy.new.any_method

# test-ruby.rb:7:in `method_missing': uninitialized constant DelayProxy::Resque (NameError)
#   from test-ruby.rb:11:in `<main>'

If you do not inherit the ActiveSupport::BasicObject or to ::Resque, the error is no longer I, but I do not know in the first place, or why Resque can no longer see.

gabriprat pushed a commit to gabriprat/resque-delay that referenced this issue Jul 3, 2015
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

1 participant