diff options
author | Yves Senn <yves.senn@garaio.com> | 2012-11-12 14:33:20 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@garaio.com> | 2012-11-12 16:06:08 +0100 |
commit | 78dca351037c5f34971bdf0dd7d0b8fc9b9bdeb4 (patch) | |
tree | fc3a9536930132ae531f8e442359ff57f40dc236 /activesupport/CHANGELOG.md | |
parent | 2f3d81c764a8b527299be8c33c64814431f83482 (diff) | |
download | rails-78dca351037c5f34971bdf0dd7d0b8fc9b9bdeb4.tar.gz rails-78dca351037c5f34971bdf0dd7d0b8fc9b9bdeb4.tar.bz2 rails-78dca351037c5f34971bdf0dd7d0b8fc9b9bdeb4.zip |
`#as_json` isolates options when encoding a hash. Closes #8182
Setting options in a custom `#as_json` method had side effects.
Modifications of the `options` hash leaked outside and influenced
the conversion of other objects contained in the hash.
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r-- | activesupport/CHANGELOG.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index dc84b44dec..24989fc244 100644 --- a/activesupport/CHANGELOG.md +++ b/activesupport/CHANGELOG.md @@ -1,5 +1,10 @@ ## Rails 4.0.0 (unreleased) ## +* `#as_json` isolates options when encoding a hash. + Fix #8182 + + *Yves Senn* + * Deprecate Hash#diff in favor of MiniTest's #diff. *Steve Klabnik* * Kernel#capture can catch output from subprocesses *Dmitry Vorotilin* |