From 2519c2b99c30f277f73b49a5b298e9388aa6bfc9 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Fri, 25 Feb 2011 15:26:41 +0000 Subject: [PATCH] Whitespace. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fd810d1d..e8239b83 100644 --- a/README.md +++ b/README.md @@ -190,15 +190,16 @@ Or, you can specify a list of all attributes you care about: This means that only changes to the `title` will save a version of the article: - >> a = Article.create + >> a = Article.create >> a.versions.length # 1 >> a.update_attributes :title => 'My Title' >> a.versions.length # 2 >> a.update_attributes :content => 'Hello' >> a.versions.length # 2 - + Passing both `:ignore` and `:only` options will result in the article being saved if a changed attribute is included in `:only` but not in `:ignore`. + ## Reverting And Undeleting A Model PaperTrail makes reverting to a previous version easy: