1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00

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

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