search for: search_worker

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

2006 Sep 05
2
question about passing array of AR objects to worker
...s 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 controller logs the array as: [#<Resource:0xb79d9f58 @attributes={"uri"=>"http://www.google.com/search?hl=en&q=ruby+on+rails...