From 0df4df4d15860425529a9eb2e73d26885d8e9678 Mon Sep 17 00:00:00 2001 From: Nikita Vasilevsky Date: Fri, 1 Sep 2023 15:40:40 +0000 Subject: [PATCH] Add CHANGELOG entries for `ActiveModel::Conversion#to_key` changes `8a5cf4cf4415ae1cdad7feecfb27149c151b0b10` made changes to `to_key` in order to support composite identifiers. This commit adds CHANGELOG entries for those. --- activemodel/CHANGELOG.md | 6 ++++++ activerecord/CHANGELOG.md | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md index bd697f8dee7f3..caf77287a30d0 100644 --- a/activemodel/CHANGELOG.md +++ b/activemodel/CHANGELOG.md @@ -1,3 +1,9 @@ +* Support composite identifiers in `to_key` + + `to_key` avoids wrapping `#id` value into an `Array` if `#id` already an array + + *Nikita Vasilevsky* + * Add `ActiveModel::Conversion.param_delimiter` to configure delimiter being used in `to_param` *Nikita Vasilevsky* diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index b7745caf5f16b..b898aa8040910 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,9 @@ +* Support composite identifiers in `to_key` + + `to_key` avoids wrapping `#id` value into an `Array` if `#id` already an array + + *Nikita Vasilevsky* + * Allow batching methods to use already loaded relation if available Calling batch methods on already loaded relations will use the records previously loaded instead of retrieving