From 4d7354aa352b94ec3a10ad053cff04890c534080 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Tue, 4 Dec 2018 14:33:31 +0900 Subject: Ensure that `delete_all` on collection proxy returns affected count Unlike the `Relation#delete_all`, `delete_all` on collection proxy doesn't return affected count. Since the `CollectionProxy` is a subclass of the `Relation`, this inconsistency is probably not intended, so it should return the count consistently. --- activerecord/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord/CHANGELOG.md') diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index d9488bd0f0..ba1b9a304f 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,7 @@ +* Ensure that `delete_all` on collection proxy returns affected count. + + *Ryuta Kamizono* + * Add the ability to prevent writes to a database for the duration of a block. Allows the application to prevent writes to a database. This can be useful when -- cgit v1.2.3