diff options
-rw-r--r-- | activesupport/lib/active_support/json/decoding.rb | 2 |
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 |