aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@garaio.com>2012-11-12 14:33:20 +0100
committerYves Senn <yves.senn@garaio.com>2012-11-12 16:06:08 +0100
commit78dca351037c5f34971bdf0dd7d0b8fc9b9bdeb4 (patch)
treefc3a9536930132ae531f8e442359ff57f40dc236 /activesupport/CHANGELOG.md
parent2f3d81c764a8b527299be8c33c64814431f83482 (diff)
downloadrails-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.md5
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*