Rails Resque undefined method error in external module
I'm having trouble calling methods from an included module inside a resque worker. In the example below, I keep getting undefined method errrors when I attempt to call the say method inside the worker (which is in the TestLib module). I've reduced the code down to bare basics to illustrate the issue: Controller (/app/controllers/test_controller.rb) class TestController < ApplicationController def testque Resque.enqueue( TestWorker, "HI" ) end end Library (/lib/test_lib.rb) module TestLib def say( word ) puts word end end Worker (/workers/test_worker.rb) require 'test_lib' class TestWorker