search for: start_search

Displaying 1 result from an estimated 1 matches for "start_search".

Did you mean: restart_search
2006 Sep 05
2
question about passing array of AR objects to worker
...ay or AR objects to my worker, i end up with a DRb object in the worker...here''s an example class SearchWorker < BackgrounDRb::Rails attr_reader :resources def do_work(resources) logger.info resources.inspect end end class SearchController < ApplicationController def start_search @resources = Resource.find(:all) logger.info @resources.inspect session[:job_key] = MiddleMan.new_worker(:class => :search_worker, :args => @resources) end end class Resource < ActiveRecord::Base include DRbUndumped # attribute, "uri", string end now, my contr...