title: Rails JSON Serialization of Decimal adds Quotes
body: <p>I'm using the default JSON serialization for a model that has a number of decimal and integer attributes. An example result is:</p>
  
  <pre><code>{ "user": { "id": 1234, "rating": "98.7" } }
  </code></pre>
  
  <p>Notice the addition of quotes around the value of "rating". This causes the deserialization library I'm using to incorrectly treat these as strings (instead of decimals). Can Rails be set to not use the quotes for all decimals?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I'm on Rails 3.0.7 and Ruby 1.9.2 if that makes a difference.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Terminal:</p>
  
  <pre><code>rails g model user rating:decimal
  rake db:migrate
  </code></pre>
  
  <p>Console:</p>
  
  <pre><code>user = User.create(rating: 98.7)
  user.to_json
  </code></pre>