From 3e7f5a1bfb42c523d12db6ef89a3c6891502a602 Mon Sep 17 00:00:00 2001 From: Jared Beck Date: Fri, 8 Apr 2016 18:54:37 -0400 Subject: [PATCH] Docs: Choosing when based on changed attr. [ci skip] --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 81728549..76773f31 100644 --- a/README.md +++ b/README.md @@ -316,6 +316,11 @@ class Translation < ActiveRecord::Base end ``` +### Choosing Based on Changed Attributes + +Starting with PaperTrail 4.0, versions are saved during an after-callback. If +you decide whether to save a new version based on changed attributes, please +use attribute_name_was instead of attribute_name. ## Choosing Attributes To Monitor