All Versions
62
Latest Version
Avg Release Cycle
76 days
Latest Release
947 days ago
Changelog History
Page 5
Changelog History
Page 5
-
v5.1.1 Changes
May 31, 2016 -
v5.1.0 Changes
May 20, 2016 -
v5.0.1 Changes
May 04, 2016 -
v5.0.0 Changes
May 02, 2016๐ฅ Breaking Changes
- #758 -
PaperTrail.config.track_associations
getter method removed, usetrack_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 theset_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
- #758 -
-
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 totrue
.
๐ Fixed
- None
-
v4.1.0 Changes
January 30, 2016Known 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 toreify
. #579
๐ Fixed
- None
-
v4.0.2 Changes
January 19, 2016 -
v4.0.1 Changes
December 14, 2015 -
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
orCucumber
helpers, you must require them in your test helper. - ๐ #566 - Removed deprecated
methods
paper_trail_on
andpaper_trail_off
. Usepaper_trail_on!
andpaper_trail_off!
instead. - ๐ #458 - Version metadata
(the
:meta
option) from AR attributes forcreate
events will now save the current value instead ofnil
. - #391 -
object_changes
value should dump toYAML
as a normalHash
instead of anActiveSupport::HashWithIndifferentAccess
. - #375 /
#374 /
#354 /
#131 -
Versions are now saved with an
after_
callback, instead of abefore_
callback. This ensures that the timestamp field for a version matches the corresponding timestamp in the model. - ๐ง
3da1f104
-PaperTrail.config
andPaperTrail.configure
are now identical: both return thePaperTrail::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
andJSONB
column types viaPaperTrail::VersionConcern#where_object
andPaperTrail::VersionConcern#where_object_changes
- #507 -
New option:
:save_changes
controls whether or not to save changes to theobject_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 storingobject
andobject_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 theobject_changes
column in versions table. - #416 - Added a
config
option for enabling/disabling utilization ofserialized_attributes
forActiveRecord
, necessary becauseserialized_attributes
has been deprecated inActiveRecord
version4.2
and will be removed in version5.0
- #399 - Add
:dup
argument for options hash toreify
which forces a new model instance. - #394 - Add RSpec matcher
have_a_version_with
for easier testing. - #347 - Autoload
ActiveRecord
models in via aRails::Engine
when the gem is used withRails
.
๐ Fixed
- ๐ #563 - Fixed a bug in
touch_with_version
so that it will still create a version even when theon
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 returnfalse
ifhas_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 thedup
behavior. Also fixes errors occuring when a user attempts to update the inheritance column on an STI model instance inActiveRecord
4.1.x - #427 - Fix
reify
method in context of model where a column has been removed. - #414 - Fix
functionality
ignore
argument tohas_paper_trail
inActiveRecord
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
andCucumber
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 oftext
. - 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, usepaper_trail_originator
.
-
v3.0.9 Changes
- #479 - Deprecated
originator
method in favor ofpaper_trail_originator
Deprecation warning informs users that theoriginator
of the methods will be removed in version4.0
. (Backported from v4) - Updated deprecation warnings for
Model.paper_trail_on
andModel.paper_trail_off
to have display correct version number the methods will be removed (4.0
)
- #479 - Deprecated