How to save an object with its associations into session


How do I save an object with its children into the session? By default
AR cleans the children when I put the object there.

And if someone knows any docs about that please show the link.


Bruno Reis

that is what I can't do: session[:user].contacts.length