Skip to content

uninitialized constant ResqueDelay::DelayProxy::Resque #1

@akicho8

Description

@akicho8
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions