-
Notifications
You must be signed in to change notification settings - Fork 1
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
Doesn't play nice with ActiveRecord::Dirty #9
Comments
Ah, I see what you're saying - that the PR's welcome ;) |
Honestly a bit unsure how to proceed. AR uses |
With a bit of refactoring, we might be able to achieve a similar behavior by overriding |
From the hour or so of digging I did, To confirm it would work I changed this line: old = clone_attribute_value(:read_attribute, attr) to: old = send(attr).clone It does work for my test case. Obviously a real solution would need to go a bit further :) |
Actually, we're already overriding read and write attribute. However, we're calling |
Possible. Would take me some digging to understand the first arg to |
My bad, this wasn't the right way to look into. Feel free to keep investigating. I'll also take a look into it soon. |
For example's sake,
foo
is secure:The text was updated successfully, but these errors were encountered: