We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd400b4 + d8936b7 commit a61bac3Copy full SHA for a61bac3
activesupport/lib/active_support/core_ext/class/subclasses.rb
@@ -18,7 +18,7 @@ def descendants
18
ObjectSpace.each_object(singleton_class).reject do |k|
19
k.singleton_class? || k == self
20
end
21
- end
+ end unless method_defined?(:descendants) # RUBY_VERSION >= "3.1"
22
23
# Returns an array with the direct children of +self+.
24
#
0 commit comments