1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00

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

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