Sha256: 7869621eaf4c6c8f354f77fdd6cf20b194cbf580923dd14a44aab3b0e3b0867e
Contents?: true
Size: 488 Bytes
Versions: 8
Compression:
Stored size: 488 Bytes
Contents
# make xml-simple and active resource a lot faster begin require 'faster_xml_simple' class Hash def self.from_xml_faster(xml) undasherize_keys(typecast_xml_value(FasterXmlSimple.xml_in(xml, 'forcearray' => false, 'forcecontent' => true, 'keeproot' => true, 'contentkey' => '__content__') )) end end module Swivel2::Formats::XmlFormat def decode xml Hash.from_xml_faster xml end end rescue LoadError end
Version data entries
8 entries across 8 versions & 1 rubygems