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:
parent
491b15fb8c
commit
d03767ed26
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue