Avoid using private API of PaperTrail#3059
Conversation
`version_class_name` is private API. Please use `paper_trail_options` instead.
The options that go into
|
448e639 to
f427dc3
Compare
|
I also had some ideas about how to improve the test coverage for the PT adapter, but it'll require schema changes, and activerecord is happy on travis but mongoid is complaining and it's 0100 here and I just want to go to bed. 😴 |
f427dc3 to
a216c74
Compare
|
Please restart job https://travis-ci.org/sferik/rails_admin/jobs/421174193 - suspected intermittent failure unrelated to this PR - all other jobs passing |
|
Great work, thanks! |
|
This change is causing issues for me, when I try to view the History of a model which does Not have papertrail, it fails with I've been able to resolve this by reverting this change. |
|
Dang, sorry Robin. So rails_admin will use the |
|
@jaredbeck I haven't had the opportunity to fully understand what's going on here, it could very well be a mis-configuration on my app...it's had many versions of rails_admin/pundit/papertrail over the years...and I just try to keep updating when possible...and then I run into breakages. Here's what I have right now: And then I fixed my current problem by reverting your fix: I also have a monkeypatch for rails_admin in order to change the pundit behavior, which could be involved (https://github.com/sudosu/rails_admin_pundit/issues/12#issuecomment-328357027)...but I don't think it should be. (I apologize that I haven't created a minimum reproduction scenario). Note: the pertinent gems in my system right now are: I also tried it with paper_trail 9.2.0, same behavior. |
version_class_nameis private API. Please usepaper_trail_optionsinstead.