Docs: Choosing when based on changed attr.

[ci skip]
This commit is contained in:
Jared Beck 2016-04-08 18:54:37 -04:00
parent 3b73566ef7
commit 3e7f5a1bfb
1 changed files with 5 additions and 0 deletions

View File

@ -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