Ben Atkins
0360d413a4
Adjust tests for our serializers so they are compatible with Arel 6; Supress warnings about raises in transactional callbacks
2014-12-24 13:29:48 -05:00
Ben Atkins
d8f846eaa4
Tweak Serializer :where_object_condition method tests so they check the argument syntax instead of the SQL
...
SQL matching was not working properly with all of the different versions of ActiveRecord and
different database adapters we are testing against on Travis, so this is a better gauge of what
queries are actually being generated by these methods.
2014-06-26 14:22:04 -04:00
Jacob Evelyn
703ec9ae88
Add where_object query to PaperTrail::Version.
2014-06-07 14:11:50 -04:00
Ben Atkins
b32ced84c5
Upcasing the provided YAML and JSON serializers
2013-10-17 22:05:24 -04:00
David Butler
05468001af
Fixed #reify so nil values in a given version get set to nil on the model
2013-05-10 17:43:56 -07:00
Ben Atkins
f54ada67e2
Making the built-in serializers declare 'extend self' so that their :load and :dump methods are available as module methods and instance methods. This enables classes/modules that mix in one of these serializers to invoke or override the methods. Close #196
2013-01-31 15:10:31 -05:00
Ben Atkins
64758ca163
Fixing some comments in the serializer tests to be accurate. Also tweaking the syntax of the 'dump' methods in the serializers to clarify that the serializers can acceptobjects other than just Hashes (even though PaperTrail will only pass attribute hashes to the serializers).
2013-01-31 11:22:03 -05:00
Ben Atkins
526e6ae7cc
Adding JSON serializer to the gem. Close #194
2013-01-22 18:13:58 -05:00