From 003df72d007725ac19aaf95c406dfb36f38ccd43 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sat, 13 Oct 2007 21:41:56 +0000 Subject: [PATCH] Don't shadow local var with block var git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7865 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/active_support/json/decoding.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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