Methods
Public Instance methods
[ show source ]
# File vendor/rails/activesupport/lib/active_support/core_ext/hash/conversions.rb, line 92
92: def create_from_xml(xml)
93: ActiveSupport::Deprecation.warn("Hash.create_from_xml has been renamed to Hash.from_xml", caller)
94: from_xml(xml)
95: end
[ show source ]
# File vendor/rails/activesupport/lib/active_support/core_ext/hash/conversions.rb, line 82
82: def from_xml(xml)
83: # TODO: Refactor this into something much cleaner that doesn't rely on XmlSimple
84: undasherize_keys(typecast_xml_value(XmlSimple.xml_in(xml,
85: 'forcearray' => false,
86: 'forcecontent' => true,
87: 'keeproot' => true,
88: 'contentkey' => '__content__')
89: ))
90: end