mirror of
https://github.com/paper-trail-gem/paper_trail.git
synced 2022-11-09 11:33:19 -05:00
10cabf2408
It already was organized *in memory* but now it's organized in files. Also, there are six fewer methods being mixed into the model class (they became ObjectAttribute and ObjectChangesAttribute). I like how the legacy (rails < 4.2) support is now all in one file, so it'll be really easy to drop when the time comes. Finally, a minor thing, I renamed CastedAttributeSerializer to CastAttributeSerializer, because I don't think "casted" is the correct conjugation.
382 B
382 B
Attribute Serializers
"Serialization" here refers to the preparation of data for insertion into a
database, particularly the object
and object_changes
columns in the
versions
table.
Likewise, "deserialization" refers to any processing of data after they
have been read from the database, for example preparing the result of
VersionConcern#changeset
.