From 2e2fb8150318f2d42cc02431f1142dc55ffb9e30 Mon Sep 17 00:00:00 2001 From: Petrik Date: Fri, 5 Jan 2024 14:56:01 +0100 Subject: [PATCH] Name all supported methods in `explain` CHANGELOG entry --- activerecord/CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 5950665e99264..10d5417cb57cd 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,4 +1,4 @@ -* Add `explain` support for `last`, `pluck` and `count` +* Add `explain` support for methods like `last`, `pluck` and `count` Let `explain` return a proxy that delegates these methods: @@ -12,6 +12,10 @@ # ... ``` + The supported methods are `pluck`, `first`, and `last`, as well as the + calculation methods: `average`, `count`, `maximum`, + `minimum`, and `sum`. + *Petrik de Heus* * Validate using `:on` option when using `validates_associated`