Update README section about metadata to be more accurate.

This commit is contained in:
Ben Atkins 2012-11-27 13:15:59 -05:00
parent 69425fa9dd
commit b393e8cb98
1 changed files with 1 additions and 1 deletions

View File

@ -572,7 +572,7 @@ You can store arbitrary model-level metadata alongside each version like this:
```ruby
class Article < ActiveRecord::Base
belongs_to :author
has_paper_trail :meta => { :author_id => Proc.new { |article| article.author_id },
has_paper_trail :meta => { :author_id => :author_id,
:word_count => :count_words,
:answer => 42 }
def count_words