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/test
Kasper Timm Hansen 5be48e491e Use Active Record's type system from 4.2 onwards.
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.
2015-12-21 21:06:42 +01:00
..
dummy Remove ruby 1.8 hacks 2015-12-13 01:14:59 -05:00
functional Remove ruby 1.8 hacks 2015-12-13 01:14:59 -05:00
unit Use Active Record's type system from 4.2 onwards. 2015-12-21 21:06:42 +01:00
custom_json_serializer.rb Upcasing the provided YAML and JSON serializers 2013-10-17 22:05:24 -04:00
paper_trail_test.rb Make Config.enabled backed by a thread variable #539 2015-06-03 09:27:57 -05:00
test_helper.rb Install debugger: pry 2015-09-16 00:42:16 -04:00
time_travel_helper.rb Remove ruby 1.8 hacks 2015-12-13 01:14:59 -05:00