From 60e5d9cbd0fedca2430192830395391807f3dd9b Mon Sep 17 00:00:00 2001 From: Russell Norris Date: Wed, 10 Jul 2013 10:37:35 -0400 Subject: [PATCH] Update README.md [ci skip] Clarify that versions call is on an instance not the class --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8d6f98e0..174f923d 100644 --- a/README.md +++ b/README.md @@ -363,7 +363,7 @@ You can find out whether a model instance is the current, live one -- or whether If your `ApplicationController` has a `current_user` method, PaperTrail will store the value it returns in the `version`'s `whodunnit` column. Note that this column is a string so you will have to convert it to an integer if it's an id and you want to look up the user later on: ```ruby ->> last_change = Widget.versions.last +>> last_change = widget.versions.last >> user_who_made_the_change = User.find last_change.whodunnit.to_i ```