(de)serialization problem with rails 3.2

32 views
Skip to first unread message

Florian S.

unread,
Jan 31, 2012, 10:24:02 AM1/31/12
to rubyonra...@googlegroups.com
I have a custom serializer object that I use for an attribute of
ActiveRecord as presented in this article:
http://www.edgerails.info/articles/what-s-new-in-edge-rails/2011/03/09/custom-activerecord-attribute-serialization/index.html

If I assign a value to that attribute with a form (in my case a nested
form), I don't get the deserialized value in the params hash as it used
to be with Rails 3.1, but now I get a serializer struct that contains
the custom serializer class instance and the deserialized value.

Does anybody know whether this is intentional, or is it just broken and
I have to work around that until it gets fixed...?

--
Posted via http://www.ruby-forum.com/.

tigrish

unread,
Feb 9, 2012, 1:09:38 PM2/9/12
to rubyonra...@googlegroups.com
I'm seeing the same problem after having upgraded to rails 3.2 .

No custom serializer for me, just a regular serialized field.

Previous behaviour was to have the field automatically deserialized, but instead I'm getting the serialized version.

Gabriel Williams

unread,
Mar 27, 2012, 4:22:21 PM3/27/12
to rubyonra...@googlegroups.com
Any update on this?  Serialization just plain isn't working for me using 3.2.

Gabriel

Frederick Cheung

unread,
Mar 28, 2012, 7:07:25 PM3/28/12
to Ruby on Rails: Talk


On Mar 27, 9:22 pm, Gabriel Williams <ummo...@gmail.com> wrote:
> Any update on this?  Serialization just plain isn't working for me using
> 3.2.
>

Which version are you using ? Rails 3.2.2 fixed some behaviour in that
respect for us.

Fred
Reply all
Reply to author
Forward
0 new messages