Fix a mistake in DescendantsTracker#descendants for Ruby 3.1

This commit is contained in:
Jean Boussier 2021-12-21 13:06:32 +01:00
parent 58c0b76982
commit 912b02ab58
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ module ActiveSupport
end
else
def descendants
children.concat(children.flat_map(&:descendants))
subclasses.concat(subclasses.flat_map(&:descendants))
end
end