• G
    Removed support for encoding BigDecimal as a JSON number · 4d02296c
    Godfrey Chan 提交于
    This is because the new encoder will no longer support encode_json.
    Therefore our only choice is to return `to_i` or `to_s` in
    `BigDecimal#as_json`. Since casting a BigDecimal to an integer is
    most likely a lossy operation, we chose to encode it as a string.
    
    Support for encoding BigDecimal as a string will return via the
    `activesupport-json_encoder` gem.
    4d02296c
encoding_test.rb 14.6 KB