title: Rails - permit a param of unknown type (string, hash, array, or fixnum)
body: <p>My model has a <code>custom_fields</code> column that serializes an array of hashes. Each of these hashes has a <code>value</code> attribute, which can be a hash, array, string, or fixnum. What could I do to permit this <code>value</code> attribute regardless of its type?</p>
  
  <p>My current permitted params line looks something like:</p>
  
  <pre><code>params.require(:model_name).permit([
      :field_one,
      :field_two,
      custom_fields: [:value]
  ])
  </code></pre>
  
  <p>Is there any way I can modify this to accept when <code>value</code> is an unknown type?</p>