Displaying 1 result from an estimated 1 matches for "drbuknown".
Did you mean:
  drbunknown
  
2006 Jul 19
1
A couple of problems
...work on BackgrounDRb.  I have come across a
couple of problems.
1. I wanted to define a simple class in the worker file to wrap up and
pass back some data to my controller.  It seems that if I create the
class either inside or outside of my worker class (in the same file)
it gets wrapper by a DRb::DRbUknown object and therefore cannot be
accessed from my controller.
class MyWorker < BackgrounDRb::Rails
  class MyResult
    attr_reader :result
    def initialize(result)
      @result = result
    end
  end
  def do_work()
  end
  def results
    MyResult.new(100)
  end
end
-- my_controller.rb -...