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

Allow for custom < Hash classes to override #to_s #1896

Merged
merged 1 commit into from
Jan 16, 2025
Merged

Conversation

ianks
Copy link
Contributor

@ianks ianks commented Jan 16, 2025

This PR updates the Ruby version used by the project to 3.4.1 and addresses an issue with hash rendering.

Specifically, the Liquid::Utils.to_s and Liquid::Utils.inspect methods now correctly handle custom hash implementations that override the #to_s and #inspect methods, respectively.

This ensures that custom hash implementations maintain their expected behavior when rendered within Liquid templates.

@ianks ianks requested a review from alexcoco January 16, 2025 16:09
@ianks ianks merged commit 74af735 into main Jan 16, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants