[Backgroundrb-devel] MiddleMan behavior
skaar
skaar at waste.org
Mon Jan 22 11:22:27 EST 2007
> ::BackgrounDRb::MiddleMan.worker(@second)
>
> yields:
>
> NoMethodError: undefined method `worker' for BackgrounDRb::MiddleMan:Class
> from (drbunix:///tmp/backgroundrbunix_localhost_2999)
> (drbunix:///tmp/backgroundrb.8516/first_worker_c6824af92d0ae35bcbba75df4e282
> b6f_0_0.158526073008825)
> /home/swistak/rails+backgroundrb/lib/workers/first_worker.rb:26:in
> `get_second_ref'
> from (irb):223
> from :0
This is kind of a legacy problem, given that we've used the MiddleMan
constant on the Rails side to represent the MiddleMan _instance_ rather
than the class. 'worker' is an instance method, so you would have to:
MiddleMan.instance.worker(@second)
/skaar
--
----------------------------------------------------------------------
|\|\ where in the | s_u_b_s_t_r_u_c_t_i_o_n
| | >=========== W.A.S.T.E. | genarratologies
|/|/ (_) is the wisdom | skaar at waste.org
----------------------------------------------------------------------
More information about the Backgroundrb-devel
mailing list