Suggestions For Deprecation Of `serialized_attributes`

18 views
Skip to first unread message

Carson Reinke

unread,
Jul 23, 2015, 10:03:19 AM7/23/15
to Ruby on Rails: Talk
I read through the pull request (https://github.com/rails/rails/pull/15704) of the deprecation of `serialized_attributes`.  I was wondering what I should do in the future.  The PR mentions using polymorphism, however, what should I use when the serialization does not represent a database entity.  I understand that this blob concept violates first normal form anyway, maybe part of the reason for the deprecation, not sure though.

Frederick Cheung

unread,
Jul 23, 2015, 10:05:30 AM7/23/15
to Ruby on Rails: Talk, carson...@brandlabs.us, carson...@brandlabs.us


On Thursday, July 23, 2015 at 3:03:19 PM UTC+1, Carson Reinke wrote:
I read through the pull request (https://github.com/rails/rails/pull/15704) of the deprecation of `serialized_attributes`.  I was wondering what I should do in the future.  The PR mentions using polymorphism, however, what should I use when the serialization does not represent a database entity.  I understand that this blob concept violates first normal form anyway, maybe part of the reason for the deprecation, not sure though.

Hi,

Do you realise that it's not `serialize` and the general concept of serialized_attributes that are deprecated, but only the method called serialized_attributes that returns the list of serialized attributes  ?

Fred

Carson Reinke

unread,
Jul 23, 2015, 10:07:21 AM7/23/15
to Ruby on Rails: Talk, frederic...@gmail.com
Ha! Ok, yes I see that now.  Thank you!
Reply all
Reply to author
Forward
0 new messages