Merge pull request #188 from dwbutler/master

Fixed documentation for custom serializer on README.
This commit is contained in:
Ben Atkins 2013-01-04 06:58:03 -08:00
commit 37dd6d9b96
1 changed files with 1 additions and 1 deletions

View File

@ -746,7 +746,7 @@ end
By default, PaperTrail stores your changes as a YAML dump. You can override this with the serializer config option:
```ruby
>> PaperTrail.serializer = MyCustomSerializer
>> PaperTrail.config.serializer = MyCustomSerializer
```
The serializer needs to be a class that responds to a `load` and `dump` method. [See the default PaperTrail serializer](https://github.com/airblade/paper_trail/blob/master/lib/paper_trail/serializers/yaml.rb) for an example.