Whitespace.

This commit is contained in:
Andy Stewart 2011-02-25 15:26:41 +00:00
parent 7e34a81edf
commit 2519c2b99c
1 changed files with 3 additions and 2 deletions

View File

@ -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: