Fixed: the redefined methods problem#512
Fixed: the redefined methods problem#512proAlexandr wants to merge 1 commit intopaper-trail-gem:masterfrom
Conversation
|
You shouldn't need the custom setter to be invoked because the getter will read the value out properly. We store the "unserialized" value, and thus that's what gets assigned to the model when reifying, which seems like it should be correct unless I'm mistaken. If I'm wrong then please provide a test demonstrating what you're trying to address here. As you can see, we already have a test in the suite mimicking the type of thing you're referring to, and it passes with the current master but fails with your "patch" here.. |
|
I get a wrong behaviour when I use multilang-hstore |
|
@proAlexandr, here is my proposed fix: f5f310b It's on the |
|
Thanks for the PR, and for bringing this to my attention. I made a slight modification so the |
…with custom setters in VersionConcern#reify)
I have tried to fix problem with redefined attribute methods in a model.
Now, I get problem if I redefine an attribute getter and setter. For example:
Version model use new getter (
price) for store a value, but when it restore the value, version don't use my new setter.