-
Notifications
You must be signed in to change notification settings - Fork 899
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
Serialized attributed with native hash is saved as !ruby/hash:ActiveSupport::HashWithIndifferentAccess #391
Comments
Sorry, I'm not entirely sure what the question is. Are you saying it is saving the attribute as a |
I noticed this the other day, too. Maybe does teh JSON serializer serialize recursively? I wonder if it's running in to an issue where one of the nested types doesn't respond to to/as_json? |
I think this is the default behavior of If you have legacy data that is already serialized in the |
Ok, did some more investigation into this. It seems this only happens in the |
it looks really great! thank you so much. Thank you again. |
Hi,
when i save native hash to database as serialized attribute, paper_trail it's saves as hash with indifferent access. Is there any switch to turn this behavior off?
For example:
SQL result after save my object
and paper_trail version of that objet
in my model i symbolize_keys with before_validation action.
The text was updated successfully, but these errors were encountered: