JackDanger/permanent_records — pull request #30 by mherold (2013-08-07 15:26:54+00:00)
Title: Fix handling of serialized attributes

A serialized attribute value in @attributes is actually wrapped in
another class since AR 3.2.0. This was not respected during deletion.

Fixes "undefined method `unserialized_value'" after deleting a
permanent record and then trying to access a serialized attribute
on the same model instance.

I'm only half happy with this solution (manually re-wrapping the attributes),
so if you can think of something better... ;)