Skip to content 3.0.1
- #340 - Prevent potential error encountered when using the
InstallGenerator
with Rails 4.1.0.rc1.
- #334 - Add small-scope
whodunnit method to PaperTrail::Model::InstanceMethods.
- #329 - Add
touch_with_version method to PaperTrail::Model::InstanceMethods,
to allow for generating a version while touching a model.
- #328 / #326 /
#307 -
Model.paper_trail_enabled_for_model? and
model_instance.without_versioning is now thread-safe.
- #316 -
user_for_paper_trail should default to current_user.try(:id)
instead of current_user (if current_user is defined).
- #313 - Make the
Rails::Controller helper compatible with
ActionController::API for compatibility with the rails-api gem.
- #312 - Fix RSpec
with_versioning class level helper method.
model_instance.without_versioning now yields the model_instance, enabling syntax like this:
model_instance.without_versioning { |obj| obj.update(:name => 'value') }.
- Deprecated
Model.paper_trail_on and Model.paper_trail_off in favor of bang versions of the methods.
Deprecation warning informs users that the non-bang versions of the methods will be removed in version 4.0