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

ActiveRecord 4.0.0 does not correctly report changed? for modified 'serialize' attribute #11968

Closed
myitcv opened this issue Aug 21, 2013 · 3 comments

Comments

@myitcv
Copy link

myitcv commented Aug 21, 2013

As shown by the breaking test in this gist

Let me know if you need any more details

@myitcv
Copy link
Author

myitcv commented Aug 21, 2013

Should have mentioned this:

ruby 1.9.3p448 (2013-06-27 revision 41675) [i686-linux]

@senny
Copy link
Member

senny commented Aug 22, 2013

This is the expected behavior. If you modify the serialized attributes in place there is no way for Active Record to know that. This 144e869 commit introduced that serialized attributes are always written even if they are not dirty.

This is also another issue touching on the same behavior, you can follow the discussion here: #8328 (comment)

@senny senny closed this as completed Aug 22, 2013
@myitcv
Copy link
Author

myitcv commented Aug 22, 2013

Thanks. Will comment on the other thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants