railsadminteam / rails_admin

RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data
MIT License
7.87k stars 2.25k forks source link

Papertrail Versions stopped being displayed in Rails 7 #3604

Closed alexs333 closed 1 year ago

alexs333 commented 1 year ago

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

mshibuya commented 1 year ago

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!