From 912b02ab5876fbfe1cf4de2ba81fc0f3c01ab1e2 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Tue, 21 Dec 2021 13:06:32 +0100 Subject: [PATCH] Fix a mistake in DescendantsTracker#descendants for Ruby 3.1 --- activesupport/lib/active_support/descendants_tracker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/descendants_tracker.rb b/activesupport/lib/active_support/descendants_tracker.rb index 0c761d4f117..4fe496cd227 100644 --- a/activesupport/lib/active_support/descendants_tracker.rb +++ b/activesupport/lib/active_support/descendants_tracker.rb @@ -94,7 +94,7 @@ module ActiveSupport end else def descendants - children.concat(children.flat_map(&:descendants)) + subclasses.concat(subclasses.flat_map(&:descendants)) end end