[Backgroundrb-devel] access to lib?

Jim Morris ml at e4net.com
Sat Jul 8 16:05:54 EDT 2006


Do I need to do anything special to access classes in RAILS_ROOT/lib from a worker?

Maybe:
  require File.dirname(__FILE__) + '../my_lib.rb'

or does it do that automatically like a controller does?

Also if I write a unit test for a worker that is accessing AR, is there anything special needed to 
be done to access fixtures etc to test it?

Thanks

-- 
Jim Morris, http://blog.wolfman.com


More information about the Backgroundrb-devel mailing list