diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-12-02 17:47:29 -0800 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-12-02 17:47:29 -0800 |
commit | 6e905e21b1b3a8114d1499775061b65556c9964e (patch) | |
tree | 5a650266d1d58b5184f21cc32028b4b18c32e73a /activesupport/CHANGELOG.md | |
parent | 735abe93a5590f3d6f215a645e633d9fcd8ff3b6 (diff) | |
parent | fadc02b7322c97f10d34fc04c147f3585eda1272 (diff) | |
download | rails-6e905e21b1b3a8114d1499775061b65556c9964e.tar.gz rails-6e905e21b1b3a8114d1499775061b65556c9964e.tar.bz2 rails-6e905e21b1b3a8114d1499775061b65556c9964e.zip |
Merge pull request #13060 from chancancode/change_log_for_json_refactor
CHANGELOG for JSON refactor + added back the `encode_big_decimal_as_string` option with warning
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r-- | activesupport/CHANGELOG.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index eec290ea79..18050969d0 100644 --- a/activesupport/CHANGELOG.md +++ b/activesupport/CHANGELOG.md @@ -26,6 +26,22 @@ *Godfrey Chan* +* Removed the old pure-Ruby JSON encoder and switched to a new encoder based on the built-in JSON + gem. + + Support for encoding `BigDecimal` as a JSON number, as well as defining custom `encode_json` + methods to control the JSON output has been **removed from core**. The new encoder will always + encode BigDecimals as `String`s and ignore any custom `encode_json` methods. + + The old encoder has been extracted into the `activesupport-json_encoder` gem. Installing that + gem will bring back the ability to encode `BigDecimal`s as numbers as well as `encode_json` + support. + + Setting the related configuration `ActiveSupport.encode_big_decimal_as_string` without the + `activesupport-json_encoder` gem installed will raise an error. + + *Godfrey Chan* + * Add `ActiveSupport::Testing::TimeHelpers#travel` and `#travel_to`. These methods change current time to the given time or time difference by stubbing `Time.now` and `Date.today` to return the time or date after the difference calculation, or the time or date that got passed into the |