Skip to content

Instantly share code, notes, and snippets.

View jmahoney's full-sized avatar

Joe Mahoney jmahoney

View GitHub Profile
@jmahoney
jmahoney / libxml_active_resource.rb
Created June 1, 2011 03:32 — forked from bguthrie/libxml_active_resource.rb
A patch for ActiveResource that allows it to use LibXML to parse documents. Use to speed up ARes.
require 'libxml'
module LibXML
module XML
module Conversions
module Document
def to_hash
root.to_hash
end
end