Module: ActiveSupport::CoreExtensions::Hash::Conversions::ClassMethods
- Defined in:
- lib/gems/activesupport-2.2.2/lib/active_support/core_ext/hash/conversions.rb
Instance Method Summary collapse
Instance Method Details
#from_xml(xml) ⇒ Object
169 170 171 172 173 174 175 176 177 |
# File 'lib/gems/activesupport-2.2.2/lib/active_support/core_ext/hash/conversions.rb', line 169 def from_xml(xml) # TODO: Refactor this into something much cleaner that doesn't rely on XmlSimple typecast_xml_value(undasherize_keys(XmlSimple.xml_in_string(xml, 'forcearray' => false, 'forcecontent' => true, 'keeproot' => true, 'contentkey' => '__content__') )) end |