Use find_variable for parentloop

This commit is contained in:
Justin Li 2015-05-12 16:11:32 -04:00
parent 8a8996387b
commit 239cfa5a44

View File

@ -99,7 +99,7 @@ module Liquid
# Store our progress through the collection for the continue flag
context.registers[:for][@name] = from + segment.length
parent_loop = context['forloop'.freeze]
parent_loop = context.find_variable('forloop'.freeze)
context.stack do
segment.each_with_index do |item, index|