Document limitations of `class_name`

Make it clear that PaperTrail doesn't currently support relative `class_name`s for modules - an absolute module path is required. See #558
This commit is contained in:
Toby Pinder 2015-07-02 13:08:04 +01:00
parent 491b15fb8c
commit d03767ed26
1 changed files with 2 additions and 0 deletions

View File

@ -628,6 +628,8 @@ class Post < ActiveRecord::Base
end
```
Unlike ActiveRecord's `class_name`, you'll have to supply the complete module path to the class (e.g. `Foo::BarVersion` if your class is inside the module `Foo`).
### Advantages
1. For models which have a lot of versions, storing each model's versions in a