I have been looking at ActiveRecord's serialization code, and noticed
that ActiveRecord::XmlSerializer#serializable_attributes purposely
excludes the STI inheritance column per ``options[:except] =
Array(options[:except]) | Array(@record.class.inheritance_column).''
Is there a particular reason for this? Would anyone be opposed to my
writing a patch to have this attribute be included?
I have been looking at ActiveRecord's serialization code, and noticed
that ActiveRecord::XmlSerializer#serializable_attributes purposely
excludes the STI inheritance column per ``options[:except] =
Array(options[:except]) | Array(@record.class.inheritance_column).''
Is there a particular reason for this? Would anyone be opposed to my
writing a patch to have this attribute be included?
The type is not part of the attributes. The type should be used as the
encapsulating tag. So if you have type=SpecialProduct, you'll get
<special-product><attributes/>.. That's by design. Why do you want it
included?