On May 3, 2006, at 5:23 PM, Blair Zajac wrote:

In looking at the to_xml method and its behavior on associations, currently it includes the attributes from the associations into the same hash that represents that AR instance being serialized.

Wouldn't it be better to have to_xml call to_xml on the association's AR instances?

Definitely. This is the way I've done it in the past, when I had to roll my own, and I think it makes sense.


If people like this idea, I'll code up a patch for it.


Please do.  :)


--
Benjamin Curtis
http://www.tesly.com/ -- Collaborative test case management
http://www.agilewebdevelopment.com/ -- Resources for the Rails community


_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to