Skip to content

Commit

Permalink
context is not always present on a Drop
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravmc committed Mar 1, 2016
1 parent 18d1644 commit dde0025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/liquid/drop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Drop

# 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

Expand Down

0 comments on commit dde0025

Please sign in to comment.