All Versions
62
Latest Version
Avg Release Cycle
76 days
Latest Release
592 days ago

Changelog History
Page 5

  • v5.1.1 Changes

    May 31, 2016

    ๐Ÿ’ฅ Breaking Changes

    • None

    โž• Added

    • None

    ๐Ÿ›  Fixed

    • #813 - Warning for paper_trail_on_destroy(:after) for pre-releases of AR 5
    • #651 - Bug with installing PT on MySQL <= 5.6
  • v5.1.0 Changes

    May 20, 2016

    ๐Ÿ’ฅ Breaking Changes

    • None

    โž• Added

    • #809 - Print warning if version cannot be saved.

    ๐Ÿ›  Fixed

    • #812 - Issue with saving HABTM associated objects using accepts_nested_attributes_for
    • #811 - Avoid unnecessary query in #record_destroy
    • ๐Ÿ‘Œ Improvements to documentation
  • v5.0.1 Changes

    May 04, 2016

    ๐Ÿ’ฅ Breaking Changes

    • None

    โž• Added

    • None

    ๐Ÿ›  Fixed

    • #791 - A rare issue in applications that override warn.
    • #789 - A potentially common issue, in applications with initializers that use versioned models.
  • v5.0.0 Changes

    May 02, 2016

    ๐Ÿ’ฅ Breaking Changes

    • #758 - PaperTrail.config.track_associations getter method removed, use track_associations? instead.
    • #740 - PaperTrail.config.track_associations? now defaults to false
    • #723 - PaperTrail.enabled= now affects all threads
    • #556 / #301 - If you are tracking who is responsible for changes with whodunnit, be aware that PaperTrail no longer adds the set_paper_trail_whodunnit before_action for you. Please add this before_action to your ApplicationController to continue recording whodunnit. See the readme for an example.
    • #683 / #682 - Destroy callback default changed to :before to accommodate ActiveRecord 5 option belongs_to_required_by_default and new Rails 5 default.

    โž• Added

    • #771 - Added support for has_and_belongs_to_many associations
    • #741 / #681 MySQL unicode support in migration generator
    • #689 - Rails 5 compatibility
    • โž• Added a rails config option: config.paper_trail.enabled
    • #503 - Support for reifying belongs_to associations.

    ๐Ÿ›  Fixed

    • #777 - Support HMT associations with :source option.
    • #738 - Rare bug where a non-versioned STI parent caused changeset to return an empty hash.
    • #731 - Map enums to database values before storing in object_changes column.
    • #715 - Optimize post-rollback association reset.
    • #701 / #699 - Cleaning old versions explicitly preserves the most recent versions instead of relying on database result ordering.
    • #635 - A bug where it was not possible to disable PT when using a multi-threaded webserver.
    • #584 - Fixed deprecation warning for Active Record after_callback / after_commit
  • v4.2.0 Changes

    May 31, 2016

    ๐Ÿ’ฅ Breaking Changes

    • None

    โž• Added

    • #808 - Warn when destroy callback is set to :after with ActiveRecord 5 option belongs_to_required_by_default set to true.

    ๐Ÿ›  Fixed

    • None
  • v4.1.0 Changes

    January 30, 2016

    Known Issues

    • ๐Ÿ”– Version changesets now store ENUM values incorrectly (as nulls). Previously the values were stored as strings. This only affects Rails 4, not Rails 5. See #926

    ๐Ÿ’ฅ Breaking Changes

    • None

    โž• Added

    • A way to control the order of AR callbacks. #614
    • โž• Added unversioned_attributes option to reify. #579

    ๐Ÿ›  Fixed

    • None
  • v4.0.2 Changes

    January 19, 2016

    ๐Ÿ’ฅ Breaking Changes

    • None

    โž• Added

    • None

    ๐Ÿ›  Fixed

    • #696 / #697 Bind JSON query parameters in where_object and where_object_changes.
  • v4.0.1 Changes

    December 14, 2015

    ๐Ÿ’ฅ Breaking Changes

    • None

    โž• Added

    • None

    ๐Ÿ›  Fixed

    • #636 - Should compile assets without a db connection
    • #589 / #588 - Fixes timestamp for "create" versions
  • v4.0.0 Changes

    July 30, 2015

    ๐Ÿš€ This major release adds JSON column support in PostgreSQL, limited support for ๐Ÿ”– versioning associations, various new configuration options, and a year's worth ๐Ÿš€ of bug fixes. Thanks to everyone who helped test the two betas and two release candidates.

    ๐Ÿ’ฅ Breaking Changes

    • ๐Ÿš… Using a Rails initializer to reopen PaperTrail::Version or otherwise extend PaperTrail is no longer recommended. An alternative is described in the readme. See https://github.com/paper-trail-gem/paper_trail/pull/557 and https://github.com/paper-trail-gem/paper_trail/pull/492.
    • If you depend on the RSpec or Cucumber helpers, you must require them in your test helper.
    • ๐Ÿšš #566 - Removed deprecated methods paper_trail_on and paper_trail_off. Use paper_trail_on! and paper_trail_off! instead.
    • ๐Ÿ“‡ #458 - Version metadata (the :meta option) from AR attributes for create events will now save the current value instead of nil.
    • #391 - object_changes value should dump to YAML as a normal Hash instead of an ActiveSupport::HashWithIndifferentAccess.
    • #375 / #374 / #354 / #131 - Versions are now saved with an after_ callback, instead of a before_ callback. This ensures that the timestamp field for a version matches the corresponding timestamp in the model.
    • ๐Ÿ”ง 3da1f104 - PaperTrail.config and PaperTrail.configure are now identical: both return the PaperTrail::Config instance and also yield it if a block is provided.

    โž• Added

    • #525 / #512 - Support for virtual accessors and redefined setter and getter methods.
    • ๐Ÿ‘ #518 - Support for querying against PostgreSQL's JSON and JSONB column types via PaperTrail::VersionConcern#where_object and PaperTrail::VersionConcern#where_object_changes
    • #507 - New option: :save_changes controls whether or not to save changes to the object_changes column (if it exists).
    • ๐Ÿ‘ #500 - Support for passing an empty array to the on option (on: []) to disable all automatic versioning.
    • #494 - The install generator will warn the user if the migration they are attempting to generate already exists.
    • ๐Ÿ‘ #484 - Support for PostgreSQL's JSONB Type for storing object and object_changes.
    • #439 / #12 - Support for versioning associations (has many, has one, etc.) one level deep.
    • #420 - Add VersionConcern#where_object_changes instance method; acts as a helper for querying against the object_changes column in versions table.
    • #416 - Added a config option for enabling/disabling utilization of serialized_attributes for ActiveRecord, necessary because serialized_attributes has been deprecated in ActiveRecord version 4.2 and will be removed in version 5.0
    • #399 - Add :dup argument for options hash to reify which forces a new model instance.
    • #394 - Add RSpec matcher have_a_version_with for easier testing.
    • #347 - Autoload ActiveRecord models in via a Rails::Engine when the gem is used with Rails.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  #563 - Fixed a bug in touch_with_version so that it will still create a version even when the on option is, e.g. [:create].
    • #541 - PaperTrail.config.enabled should be Thread Safe
    • #451 - Fix reify method in context of model where the base class has a default scope, and the live instance is not scoped within that default scope.
    • #440 - versions association should clear/reload after a transaction rollback.
    • #438 - ModelKlass.paper_trail_enabled_for_model? should return false if has_paper_trail has not been declared on the class.
    • #404 / #428 - model_instance.dup does not need to be invoked when examining what the instance looked like before changes were persisted, which avoids issues if a 3rd party has overriden the dup behavior. Also fixes errors occuring when a user attempts to update the inheritance column on an STI model instance in ActiveRecord 4.1.x
    • #427 - Fix reify method in context of model where a column has been removed.
    • #414 - Fix functionality ignore argument to has_paper_trail in ActiveRecord 4.
    • #413 - Utilize RequestStore to ensure that the PaperTrail.whodunnit is set in a thread safe manner within Rails and Sinatra.
    • #381 - Fix irb warning: can't alias context from irb_context. Rspec and Cucumber helpers should not be loaded by default, regardless of whether those libraries are loaded.
    • #248 - In MySQL, to prevent truncation, generated migrations now use longtext instead of text.
    • Methods handling serialized attributes should fallback to the currently set Serializer instead of always falling back to PaperTrail::Serializers::YAML.

    ๐Ÿ—„ Deprecated

    • ๐Ÿ—„ #479 - Deprecated originator method, use paper_trail_originator.
  • v3.0.9 Changes

    • #479 - Deprecated originator method in favor of paper_trail_originator Deprecation warning informs users that the originator of the methods will be removed in version 4.0. (Backported from v4)
    • Updated deprecation warnings for Model.paper_trail_on and Model.paper_trail_off to have display correct version number the methods will be removed (4.0)