diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-07-22 14:57:42 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-07-22 15:48:52 -0300 |
commit | 21c4b0942f4014c86117c27a452e68094a05d538 (patch) | |
tree | bf528789ef5c854b48c6bb95b7cfd316ce5d9928 /activesupport | |
parent | ba8d89c4c8d1c038c0d6fc9dbfe22f6d528d0da9 (diff) | |
download | rails-21c4b0942f4014c86117c27a452e68094a05d538.tar.gz rails-21c4b0942f4014c86117c27a452e68094a05d538.tar.bz2 rails-21c4b0942f4014c86117c27a452e68094a05d538.zip |
Don't shadow outer local variables
Diffstat (limited to 'activesupport')
-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 |