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 ```