title: How to prevent to_xml from (wrongly) singularize tags?
body: <p>String to XML:</p>
  
  <pre><code>&gt;&gt; obj = Hash.from_xml('&lt;addresses&gt;&lt;address&gt;&lt;name&gt;1&lt;/name&gt;&lt;/address&gt;&lt;address&gt;&lt;name&gt;2&lt;/name&gt;&lt;/address&gt;&lt;/addresses&gt;')
  =&gt; {"addresses"=&gt;{"address"=&gt;[{"name"=&gt;"1"}, {"name"=&gt;"2"}]}}
  </code></pre>
  
  <p><code>address</code> (wrongly) becomes <code>addres</code> (missing <code>s</code> surrounding <code>&lt;name&gt;</code> tag):</p>
  
  <pre><code>&gt;&gt; print obj.to_xml
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;hash&gt;
    &lt;addresses&gt;
      &lt;address type="array"&gt;
        &lt;addres&gt;
          &lt;name&gt;1&lt;/name&gt;
        &lt;/addres&gt;
        &lt;addres&gt;
          &lt;name&gt;2&lt;/name&gt;
        &lt;/addres&gt;
      &lt;/address&gt;
    &lt;/addresses&gt;
  &lt;/hash&gt;
  =&gt; nil
  </code></pre>
  
  <p>How can I disable <code>to_xml</code> from regularizing tags?</p>
  
  <p>UPDATE:</p>
  
  <p>Added in config/initializers/inflections.rb :</p>
  
  <pre><code>ActiveSupport::Inflector.inflections do |inflect|
   inflect.irregular 'address', 'addresses'
  end
  </code></pre>
  
  <p>but still gives the same <code>addres</code> tag.</p>