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

Issue #664 | Update handling nil value for PgHash #665

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

unavailabl3
Copy link
Contributor

Issue 664: Cache returns last value if nil value provided

When assigning attribute (which uses translations) nil value, it won't invalidate cache and will store previous value.
This possibly can affect any logic, but the common example is ActiveRecord validations. As cache uses previous value, it will pass presence validation, but it is incorrect as current value is nil.
Disabling cache for the attribute fixes situation, but actually it is not a solution.
This change appeared after version 1.2.9 and possibly after implementing logic for the Issue #535

@shioyama
Copy link
Owner

shioyama commented Jan 6, 2025

Thanks! ❤️

@shioyama shioyama merged commit 5837213 into shioyama:master Jan 6, 2025
61 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