paper-trail-gem--paper_trail/spec/paper_trail/serializers
Jared Beck 4ef8a0bfed Queries: object_changes: Simplify error instantiation
- Introduces a uniform error class, UnsupportedColumnType
- Simplifies the built-in serializers (paper_trail/serializers)

Since 9.2.0, when `object_changes_adapter` was introduced, if someone must use a
text column, and still wants to use these queries, they must write an
`object_changes_adapter`. AFAIK, no one has ever done this. The only public
adapter I know of, paper_trail-hashdiff, only supports json/b columns.

It's also theoretically possible that, after `where_object_changes` dropped
support for text columns, someone wrote a custom serializer (see
`PaperTrail.serializer=`). AFAIK, no one has done that either. Such a technique
was never documented under [6.b. Custom
Serializer](https://github.com/paper-trail-gem/paper_trail#6b-custom-serializer)
2021-04-06 12:13:04 -04:00
..
custom_json_serializer_spec.rb Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
custom_yaml_serializer_spec.rb Update rubocop et. al. to latest 2021-03-21 00:03:07 -04:00
json_spec.rb Queries: object_changes: Simplify error instantiation 2021-04-06 12:13:04 -04:00
yaml_spec.rb Tests: various updates for rails 6.1 2020-12-15 12:39:34 -05:00