Module: ActiveSupport::CoreExtensions::Hash::Conversions::ClassMethods
- Defined in:
- lib/active_support/core_ext/hash/conversions.rb
Instance Method Summary collapse
Instance Method Details
#from_trusted_xml(xml) ⇒ Object
174 175 176 |
# File 'lib/active_support/core_ext/hash/conversions.rb', line 174 def from_trusted_xml(xml) from_xml xml, [] end |
#from_xml(xml, disallowed_types = nil) ⇒ Object
170 171 172 |
# File 'lib/active_support/core_ext/hash/conversions.rb', line 170 def from_xml(xml, disallowed_types = nil) typecast_xml_value(unrename_keys(XmlMini.parse(xml)), disallowed_types) end |