diff options
author | Mike Mangino <mmangino@hubtran.com> | 2017-03-03 15:02:35 -0500 |
---|---|---|
committer | Mike Mangino <mmangino@hubtran.com> | 2017-03-03 15:02:35 -0500 |
commit | 1bb0605dfe09f654d9ad43a86b69183cd6f653f2 (patch) | |
tree | b140192eeb3fadc1628d627f008602c560cc2f04 /activemodel/CHANGELOG.md | |
parent | 76be78c59cd75eaafb31719745b43df4743fd33d (diff) | |
download | rails-1bb0605dfe09f654d9ad43a86b69183cd6f653f2.tar.gz rails-1bb0605dfe09f654d9ad43a86b69183cd6f653f2.tar.bz2 rails-1bb0605dfe09f654d9ad43a86b69183cd6f653f2.zip |
Don't accidentally lose includes in serialization
Diffstat (limited to 'activemodel/CHANGELOG.md')
-rw-r--r-- | activemodel/CHANGELOG.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md index 1503b6a3e4..ba5ba825b3 100644 --- a/activemodel/CHANGELOG.md +++ b/activemodel/CHANGELOG.md @@ -1,3 +1,6 @@ +* Don't only take the first hash key in serialization :includes. Doing so silently loses options in `includes: [:account, {address: {only: id}, user: {only: id}]` + + *Mike Mangino* ## Rails 5.1.0.beta1 (February 23, 2017) ## * Remove deprecated behavior that halts callbacks when the return is false. |