Rails 7.2 has introduced connection pinning in https://github.com/rails/rails/pull/50999 and removed the former method lock_thread=. This PR uses the new methods if they are available, otherwise the previous behavior remains. A deprecation warning is fixed as well.
Rails 7.2 has introduced connection pinning in https://github.com/rails/rails/pull/50999 and removed the former method
lock_thread=
. This PR uses the new methods if they are available, otherwise the previous behavior remains. A deprecation warning is fixed as well.Resolves #164