This repository has been archived by the owner on May 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Narnach edited this page Sep 13, 2010
·
5 revisions
This is a forked repository. bitbckt’s libxml_rails wiki might have more information on the upstream development.
Downstream, my focus is:
- Implement a drop-in #to_xml for Rails classes, offer #lib_to_xml_with_libxml for core classes such as Hash and Array
- Tweak the gem to my liking in making it work with ActiveRecord/ActiveResource/Rails in general.
Version-wise, I use the fourth digit in the version number to allow my own gem versioning without conflicting with upstream.
Things that actually work:
- Hash#to_xml_with_libxml
- Array#to_xml_with_libxml
- ActiveResource::Base#to_xml, which uses libxml
- ActiveResource::Formats::XmlFormat#encode, which uses libxml
ActiveRecord does more complex things internally and since the performance of #to_xml using the ruby implementation there was acceptable for my purposes, I did not pursue that. Anyone with patches and tests can send a pull request.