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.
1 parent ba8d89c commit 21c4b09Copy full SHA for 21c4b09
activesupport/lib/active_support/descendants_tracker.rb
@@ -11,9 +11,9 @@ def self.direct_descendants(klass)
11
end
12
13
def self.descendants(klass)
14
- @@direct_descendants[klass].inject([]) do |descendants, klass|
15
- descendants << klass
16
- descendants.concat klass.descendants
+ @@direct_descendants[klass].inject([]) do |descendants, _klass|
+ descendants << _klass
+ descendants.concat _klass.descendants
17
18
19
@@ -40,4 +40,4 @@ def descendants
40
DescendantsTracker.descendants(self)
41
42
43
-end
+end
0 commit comments