On Tue, Oct 30, 2012 at 1:22 AM, Pierre J. <[email protected]> wrote:
> Thanks guys.
> Unfortunately extracting ps from its context would be really
> complicated. It is a hash of nested AR objects. I tried to reproduce
> with simpler objects but it did not work.
> I will have to try and find my way in the Marshal.dump code.

If AR means ActiveRecord then you may run into the situation that
those objects store state related to the current connection or
transaction which cannot be properly serialized and deserialized.  It
may be necessary to copy the object tree or unlink them from the
database (no AR expert here, but others may explain better).

Kind regards

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

-- You received this message because you are subscribed to the Google Groups 
ruby-talk-google group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send email 
to [email protected]. For more options, visit this 
group at https://groups.google.com/d/forum/ruby-talk-google?hl=en

Reply via email to