From 1bb0605dfe09f654d9ad43a86b69183cd6f653f2 Mon Sep 17 00:00:00 2001 From: Mike Mangino Date: Fri, 3 Mar 2017 15:02:35 -0500 Subject: Don't accidentally lose includes in serialization --- activemodel/CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'activemodel/CHANGELOG.md') 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. -- cgit v1.2.3