context is not always present on a Drop

This commit is contained in:
Gaurav Chande
2016-03-01 21:22:11 +00:00
parent 18d1644980
commit dde00253f9
+1 -1
View File
@@ -25,7 +25,7 @@ module Liquid
# Catch all for the method
def liquid_method_missing(method)
return nil unless @context.strict_variables
return nil unless @context && @context.strict_variables
raise Liquid::UndefinedDropMethod, "undefined method #{method}"
end