class method
self.direct_descendants
Ruby on Rails 7.0.10
Since v3.0.20 Last seen in v7.0.10Signature
self.direct_descendants(klass)
No documentation comment.
Parameters
-
klassreq
Source
# File activesupport/lib/active_support/descendants_tracker.rb, line 11
def direct_descendants(klass)
ActiveSupport::Deprecation.warn(<<~MSG)
ActiveSupport::DescendantsTracker.direct_descendants is deprecated and will be removed in Rails 7.1.
Use ActiveSupport::DescendantsTracker.subclasses instead.
MSG
subclasses(klass)
end
Defined in activesupport/lib/active_support/descendants_tracker.rb line 11
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::DescendantsTracker