mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
context is not always present on a Drop
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user