diff options
author | José Valim <jose.valim@gmail.com> | 2010-07-22 21:45:48 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-07-22 21:46:01 +0200 |
commit | 64ca80e523d2ac2f304180a45168ee9ec3b7ff52 (patch) | |
tree | 27460648aa2dfbad316c7d4957a0cf8da0fc3c6e /activesupport/lib | |
parent | ba8d89c4c8d1c038c0d6fc9dbfe22f6d528d0da9 (diff) | |
parent | 24f303b677e4a8f0ecf8c335d95c63c3f7f1bdcc (diff) | |
download | rails-64ca80e523d2ac2f304180a45168ee9ec3b7ff52.tar.gz rails-64ca80e523d2ac2f304180a45168ee9ec3b7ff52.tar.bz2 rails-64ca80e523d2ac2f304180a45168ee9ec3b7ff52.zip |
Merge remote branch 'spastorino/master'
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/descendants_tracker.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/descendants_tracker.rb b/activesupport/lib/active_support/descendants_tracker.rb index 6cba84d79e..4d1cfacc95 100644 --- a/activesupport/lib/active_support/descendants_tracker.rb +++ b/activesupport/lib/active_support/descendants_tracker.rb @@ -11,9 +11,9 @@ module ActiveSupport end def self.descendants(klass) - @@direct_descendants[klass].inject([]) do |descendants, klass| - descendants << klass - descendants.concat klass.descendants + @@direct_descendants[klass].inject([]) do |descendants, _klass| + descendants << _klass + descendants.concat _klass.descendants end end @@ -40,4 +40,4 @@ module ActiveSupport DescendantsTracker.descendants(self) end end -end
\ No newline at end of file +end |