Module: ActiveSupport::CoreExtensions::Hash::Conversions::ClassMethods
- Defined in:
- lib/monetra/active_support/core_ext/hash/conversions.rb
Instance Method Summary collapse
Instance Method Details
#create_from_xml(xml) ⇒ Object
80 81 82 83 84 85 86 87 88 |
# File 'lib/monetra/active_support/core_ext/hash/conversions.rb', line 80 def create_from_xml(xml) # TODO: Refactor this into something much cleaner that doesn't rely on XmlSimple undasherize_keys(typecast_xml_value(XmlSimple.xml_in(xml, 'forcearray' => false, 'forcecontent' => true, 'keeproot' => true, 'contentkey' => '__content__') )) end |