From 6b3f5a2e99c3c4b2e16ee3a4832e57dc1a502e41 Mon Sep 17 00:00:00 2001 From: tgaff Date: Thu, 19 Nov 2020 18:11:44 -0800 Subject: [PATCH] correct minor issue on README `model.live?` should be `model.paper_trail.live?` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 73444a9c..8cad36b0 100644 --- a/README.md +++ b/README.md @@ -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: