> 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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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 http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
