Permalink
Browse files

1.8 block variable shadowing strikes again

  • Loading branch information...
1 parent 0a41ece commit 588ac7121354cae78cfcf413ede44ddba75c3f20 @wycats wycats committed Aug 17, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/dependencies.rb
View
4 activesupport/lib/active_support/dependencies.rb
@@ -104,8 +104,8 @@ def new_constants
# element of self[Object] will be an Array of the constants that were present
# before parent.rb was required. The second element will be an Array of the
# constants that were present before child.rb was required.
- self[namespace].each do |constants|
- constants.concat(new_constants)
+ self[namespace].each do |namespace_constants|
+ namespace_constants.concat(new_constants)
end
# Normalize the list of new constants, and add them to the list we will return

0 comments on commit 588ac71

Please sign in to comment.