mirror of
https://github.com/paper-trail-gem/paper_trail.git
synced 2022-11-09 11:33:19 -05:00
5be48e491e
Rails 4.2 deprecates `serialized_attributes` without replacement. However, it also introduces a type system which lets us treat all attributes the same. Rails 4.2 has `type_for_attribute` which knows how to serialize and deserialize itself from a database through `type_cast_for_database` and `type_cast_from_database`. (In Rails 5 they will be `serialize` and `deserialize` respectively.) Thus we no longer need the `PaperTrail.config.serialized_attributes` toggle, and this change makes it do nothing. It's still kept around for backwardscompatibility. |
||
---|---|---|
.. | ||
dummy | ||
functional | ||
unit | ||
custom_json_serializer.rb | ||
paper_trail_test.rb | ||
test_helper.rb | ||
time_travel_helper.rb |