Merge pull request #1673 from Shopify/initialize-context

Initialize context to nil on the Drop class
This commit is contained in:
Jean byroot Boussier
2023-01-12 22:19:28 +01:00
committed by GitHub
+4
View File
@@ -25,6 +25,10 @@ module Liquid
class Drop
attr_writer :context
def initialize
@context = nil
end
# Catch all for the method
def liquid_method_missing(method)
return nil unless @context&.strict_variables