Permalink
Browse files

1.8 block variable shadowing strikes again

  • Loading branch information...
1 parent dbe0802 commit c6db3486c355f4a4fb911d8a8a9ea8043c67b650 @wycats wycats committed Aug 17, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 c6db348

Please sign in to comment.