Unserializing hash with unquoted strings

Hi all,

I’ve recently upgraded a rails 3.0.20 app to 4.0.0.beta1 and realize
that
the serialize function must have changed in between (not sure if related
to
json security fixes).

In the MySQL database I have for the serialized column:


id: 6695079125_10151776148744126

In rails 3 this would be parsed back as string
(“6695079125_10151776148744126”) while in rails 4 this became integer
(669507912510151776148744126 - with underscore discarded). I notice that
in
rails 4 such value would be saved quoted as well. This is all fine and
good
but how do I convert existing values in MySQL in to quoted strings so
that
rails 4 will be heppy with the data?

Thanks!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs