bc07139db3
Ref: https://bugs.ruby-lang.org/issues/14394#note-38 Based on Matz's last comment, it's not so clear whether `Class#descendants` will come back in the same form or at all. So let's not assume anything.
8 lines
176 B
Ruby
8 lines
176 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ActiveSupport
|
|
module RubyFeatures # :nodoc:
|
|
CLASS_SUBCLASSES = Class.method_defined?(:subclasses) # RUBY_VERSION >= "3.1"
|
|
end
|
|
end
|