Skip to content

Commit ff5e909

Browse files
committed
DescendantsTracker: fix the TruffleRuby branch
1 parent 617c835 commit ff5e909

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

activesupport/lib/active_support/descendants_tracker.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def direct_descendants(klass)
3030
#
3131
# JRuby for now doesn't have Class#descendant, but when it will, it will likely
3232
# have the same WeakMap semantic than Truffle so we future proof this as much as possible.
33-
class WeakSet
33+
class WeakSet # :nodoc:
3434
def initialize
3535
@map = ObjectSpace::WeakMap.new
3636
end
@@ -43,6 +43,7 @@ def []=(object, _present)
4343
@map[object_id] = object
4444
end
4545
end
46+
WeakSet.new
4647
end
4748

4849
class << self

0 commit comments

Comments
 (0)