It is when config.active_record.permanent_connection_checkout = :disallowed config is used. Which is a good idea when using fibers, as there can be many more fibers than threads and then dry up the db pool
Try and load the admin users page and see the exception.
Originally posted by @henrikbjorn in #8474 (comment)
Expected behavior
ActiveAdmin works
Actual behavior
ActiveRecord::ActiveRecordError in Admin::CommentsController#index
Called deprecated `ActiveRecord::Base.connection` method.
Either use `with_connection` or `lease_connection`.
How to reproduce
- Clone
demo.activeadmin.info
- Add
config.active_record.permanent_connection_checkout = :disallowed to config/application.rb
- Go to http://localhost:3000/admin/comments
More information
Old PR addressing this issue #8474