Skip to content

Commit

Permalink
Merge pull request #1673 from Shopify/initialize-context
Browse files Browse the repository at this point in the history
Initialize context to nil on the Drop class
  • Loading branch information
casperisfine committed Jan 12, 2023
2 parents c743936 + 128b4e3 commit bc15315
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/liquid/drop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc15315

Please sign in to comment.