PaperTrail v12.1.0 Release Notes

Release Date: 2021-08-30 // about 2 months ago
  • ๐Ÿ’ฅ Breaking Changes

    • None

    โž• Added

    • #1292 - where_attribute_changes queries for versions where the object's attribute changed to or from any values.
    • #1291 - where_object_changes_to queries for versions where the object's attributes changed to one set of known values from any other set of values.

    ๐Ÿ›  Fixed

    • #1285 - For ActiveRecord >= 6.0, the touch callback will no longer create a new Version for skipped or ignored attributes.
    • #1309 - Removes item_subtype requirement when specifying model-specific limits.
    • #1333 - Improve reification of STI models that use find_sti_class/sti_class_for to customize single table inheritance.

Previous changes from v12.0.0

  • ๐Ÿ’ฅ Breaking Changes

    • ๐Ÿš… #1281 Rails: Instead of an Engine, PT now provides a Railtie, which is simpler. This was not expected to be a breaking change, but has caused trouble for some people:
    • ๐Ÿ”ง Rails: The deprecated config.paper_trail configuration technique has been removed. This configuration object was deprecated in 10.2.0. It only had one key, config.paper_trail.enabled. Please review docs section 2.d. Turning PaperTrail Off for alternatives.

    โž• Added

    • where_object_changes_from queries for versions where the object's attributes changed from one set of known values to any other set of values.

    ๐Ÿ›  Fixed

    • Expand kwargs passed to save_with_version using double splat operator - Rails 6.1 compatibility
    • ๐Ÿš… #1287 - Fix 'rails db:migrate' error when run against an app with mysql2 adapter

    Dependencies

    • โฌ‡๏ธ Drop support for ruby 2.4 (reached EoL on 2020-03-31)