1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

[ci skip] Grammar correction

This commit is contained in:
Akshay Vishnoi 2014-01-14 13:43:47 +05:30
parent db765ec741
commit a71a8e2a35

View file

@ -105,7 +105,7 @@ class Hash
# hash = Hash.from_xml(xml) # hash = Hash.from_xml(xml)
# # => {"hash"=>{"foo"=>1, "bar"=>2}} # # => {"hash"=>{"foo"=>1, "bar"=>2}}
# #
# DisallowedType is raise if the XML contains attributes with <tt>type="yaml"</tt> or # DisallowedType is raised if the XML contains attributes with <tt>type="yaml"</tt> or
# <tt>type="symbol"</tt>. Use <tt>Hash.from_trusted_xml</tt> to parse this XML. # <tt>type="symbol"</tt>. Use <tt>Hash.from_trusted_xml</tt> to parse this XML.
def from_xml(xml, disallowed_types = nil) def from_xml(xml, disallowed_types = nil)
ActiveSupport::XMLConverter.new(xml, disallowed_types).to_h ActiveSupport::XMLConverter.new(xml, disallowed_types).to_h