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:
parent
3b73566ef7
commit
3e7f5a1bfb
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue