Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Liquid::Drop: Expect @context to always be set #1528

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/liquid/drop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Drop

# 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

Expand Down