Merge pull request #1268 from tgaff/patch-1

Correct minor issue in code-sample on README.
This commit is contained in:
Todd Lynam 2020-11-22 09:50:21 -10:00 committed by GitHub
commit 0104655da6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -703,9 +703,9 @@ it came instead from a previous version -- with `live?`:
```ruby
widget = Widget.find 42
widget.live? # true
widget.paper_trail.live? # true
widget = widget.paper_trail.previous_version
widget.live? # false
widget.paper_trail.live? # false
```
And you can perform `WHERE` queries for object versions based on attributes: