dunnololtest

This commit is contained in:
Florian Weingarten
2019-04-25 10:29:04 -04:00
parent 78d2a437ff
commit 250048717c
2 changed files with 19 additions and 1 deletions
+2 -1
View File
@@ -143,7 +143,8 @@ module Liquid
# Fetches an object starting at the local scope and then moving up the hierachy
def find_variable(key, raise_on_not_found: true)
scope = @scope if @scope.key?(key)
value = @scope[key]
scope = @scope if value != nil
if scope.nil?
index = @environments.find_index do |e|