> Serialization concerns should be restricted to the to_xml interface, > rather than polluting your model. As such I want to move > xml_element_name into an option that is passed to to_xml.
Agreed. Methods that are mixed-into the Models or Resources should be kept to a minimum, ideally just what's expected, such as to_xml or to_json methods that are mixed into Resource when using dm- serializer. The same can be said of Associations, where an accessor and mutator are created in the Resource when you use has() or belongs_to(). Dan (dkubb) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DataMapper" 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/datamapper?hl=en -~----------~----~----~----~------~----~------~--~---
