rails/activesupport/lib/active_support/ruby_features.rb
Jean Boussier bc07139db3 Remove feature checking for Class#descendants
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.
2021-12-22 14:12:13 +01:00

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