enumerize: enumerize make paper_trail not working properly
enumerize :status, in: {editing: 0, finished: 1, published: 2}, default: :editing, scope: true, predicates: true
add this line will make paper_trail not track status changes, I don’t know which gem cause this issue, so I just report both, hope this can be fixed soon
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 19 (6 by maintainers)
I am currently still facing this issue with
enumerize 1.1.0and the paper_trailYAMLserializerIt actually throws an exception
Attribute was supposed to be a Array, but was a Enumerize::Set. -- #<Enumerize::Set {a_thing}>@luizcarvalho I checked the test application and reproduced the same issue even without enumerize in Gemfile. So this is clearly not an enumerize issue.
However, I also checked paper_trail README and noticed the following:
I think that changeset method will work only if an object_changes column is present. Hope this will help.