mirror of https://github.com/rails/rails
Fix a mistake in DescendantsTracker#descendants for Ruby 3.1
This commit is contained in:
parent
58c0b76982
commit
912b02ab58
|
@ -94,7 +94,7 @@ module ActiveSupport
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
def descendants
|
def descendants
|
||||||
children.concat(children.flat_map(&:descendants))
|
subclasses.concat(subclasses.flat_map(&:descendants))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue