diff --git a/History.md b/History.md index f7337788..f4c60ae1 100644 --- a/History.md +++ b/History.md @@ -1,5 +1,12 @@ # Liquid Change Log +## 5.2.1 (unreleased) + +### Features + +### Fixes +* Liquid::Drop: Expect @context to always be set (#1528) [Thierry Joyal] + ## 5.2.0 2021-03-01 ### Features diff --git a/lib/liquid/drop.rb b/lib/liquid/drop.rb index d4d8950f..3959ab55 100644 --- a/lib/liquid/drop.rb +++ b/lib/liquid/drop.rb @@ -27,7 +27,7 @@ module Liquid # Catch all for the method def liquid_method_missing(method) - return nil unless @context&.strict_variables + return nil unless @context.strict_variables raise Liquid::UndefinedDropMethod, "undefined method #{method}" end