Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

PaperTrail extension updates #3375

Merged
merged 5 commits into from Aug 14, 2021

Conversation

codealchemy
Copy link
Contributor

@codealchemy codealchemy commented Aug 9, 2021

Following decf428, this updates the PaperTrail adapter to

  • Align the extension in dev / CI with supported versions
  • Remove unnecessary version checks
  • Fix an existing 馃悰 in the auditing adapter related to custom version class names

PaperTrail compatibility notes that `v12.x` is the only version supported by Ruby 2.5.
[Starting in `v10.1.0`](https://github.com/paper-trail-gem/paper_trail/blob/master/CHANGELOG.md#deprecated-1), PaperTrail updated the configuration for defining a custom version class for a model.

In RailsAdmin, this impacts the `history#index` view - as the PaperTrail adapter will use the fallback `@version_class` and fail to render the appropriate versions for a configured model.
The custom version class is typically set in an initializer, kept with `PaperTrailTestWithCustomAssociation` here for visibility.
Aligning with the version used in the existing `versions` table migration to allow for this migration / related tests to be used in the 2.x stable branch (that supports older Rails versions)
@mshibuya mshibuya merged commit b67e976 into railsadminteam:master Aug 14, 2021
@mshibuya
Copy link
Member

Awesome, thanks!

@codealchemy codealchemy deleted the papertrail-updates branch August 14, 2021 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants