-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid using private API of PaperTrail #3059
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_name
is private API. Please usepaper_trail_options
instead.