hashwin/paper_trail-hashdiff

Error when accessing changesets

ch000 opened this issue · 0 comments

ch000 commented

When trying to access a changeset of a version i get the error:

NoMethodError: private method object_changes_deserialized' called for #PaperTrail::Version:0x000000010f24a008
Did you mean? object_changes`

my config/paper_trail.rb looks like this. The error appears as soon as i configure the object_changes_adapter and try to access a changeset.

require "paper_trail_hashdiff"
PaperTrail.config.object_changes_adapter = PaperTrailHashDiff.new(only_objects: true)

I got no further paper_trail configurations.

I'm using the current version of paper_trail (12.1) but the object_changes_deserialized seems to be a private method in older versions as well. So i'm not sure if i just missed something, or if some other dependency changed something. Do you've got any ideas?