rails/rails — Issue #3837: to_xml fails on master
Author: rubys
Created: 2011-12-03 01:55:09+00:00
State: open

To reproduce, go into rails console and call to_xml on pretty much any ActiveRecord::Base object. All that is required is a datetime attribute like created_at or updated_at.

Test case: http://intertwingly.net/stories/2011/12/02/toXml.html

f1a534af98950efd9969deea1540717c4516d673 is the first bad commit:

Author: Jon Leighton
Date: Thu Dec 1 17:55:27 2011 +0000

Remove the need for type_cast_attribute.

This is good because it reduces duplication.