aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-10-13 21:41:56 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-10-13 21:41:56 +0000
commit003df72d007725ac19aaf95c406dfb36f38ccd43 (patch)
tree72111287134e9662e5fd52ab1cc8ef67f6ee5fc8 /activesupport
parent01919cee5f3c86f5180a219152829631b26c6c24 (diff)
downloadrails-003df72d007725ac19aaf95c406dfb36f38ccd43.tar.gz
rails-003df72d007725ac19aaf95c406dfb36f38ccd43.tar.bz2
rails-003df72d007725ac19aaf95c406dfb36f38ccd43.zip
Don't shadow local var with block var
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7865 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/json/decoding.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/json/decoding.rb b/activesupport/lib/active_support/json/decoding.rb
index cb5f2a222a..7d07a60e33 100644
--- a/activesupport/lib/active_support/json/decoding.rb
+++ b/activesupport/lib/active_support/json/decoding.rb
@@ -50,7 +50,7 @@ module ActiveSupport
zip(marks + [json.length]).
map { |left, right| json[left..right] }.
join(" ")
- times.each { |pos| output[pos-1] = ' ' }
+ times.each { |i| output[i-1] = ' ' }
output
end
end