1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00
paper-trail-gem--paper_trail/lib/paper_trail/attribute_serializers/README.md
Jared Beck 10cabf2408 Break AttributesSerialization into small modules
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.
2016-05-18 23:12:45 -04:00

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.