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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Papertrail Versions stopped being displayed in Rails 7 #3604

Closed
alexs333 opened this issue Feb 22, 2023 · 1 comment
Closed

Papertrail Versions stopped being displayed in Rails 7 #3604

alexs333 opened this issue Feb 22, 2023 · 1 comment

Comments

@alexs333
Copy link

Describe the bug
In all version of Rails prior to 7, I was able to add PaperTrail::Version model to the list of models managed by rails_admin:

  # config/initializers/rails_admin.rb

  config.model 'PaperTrail::Version' do
    label 'Vehicle history'
    list do
      limited_pagination true
    end
  end

Reproduction steps
Simply by loading rails admin, the option appears in the list of models in rails prior to version 7, and disappears after upgrade to rails 7.

Expected behavior
Expected the 'Vehicle History' in the list of models.

Additional context

  • rails version: 7
  • rails_admin version: 3.1.1 (also tried with 3.0)
  • rails_admin npm package version: 3.1.1
@mshibuya
Copy link
Member

This should be a bug, since not showing a configured model without any notice doesn't make sense. I couldn't figure out where this behavior change came from though...

Now fixed in the master. Thank you for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants