This avoids calling ActiveRecord::Base.clear_active_connections!, which has been removed in Rails 7.2. AFAICT this has always been a delegator to the connection handler, so this should be compatible with older Active Record versions as well.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/plashchynski/crono/pull/127
**Author:** [@janko](https://github.com/janko)
**Created:** 8/19/2024
**Status:** ✅ Merged
**Merged:** 8/19/2024
**Merged by:** [@plashchynski](https://github.com/plashchynski)
**Base:** `main` ← **Head:** `rails-7.2`
---
### 📝 Commits (2)
- [`9a8e804`](https://github.com/plashchynski/crono/commit/9a8e8049f9687bb49a93dac26bc636c318b24ed7) Add Propshaft for tests
- [`ab4e1e8`](https://github.com/plashchynski/crono/commit/ab4e1e808d1a042a311525c5cfd0fc409d62f625) Call `clear_active_connections!` on the connection handler
### 📊 Changes
**3 files changed** (+177 additions, -140 deletions)
<details>
<summary>View changed files</summary>
📝 `Gemfile.lock` (+175 -139)
📝 `crono.gemspec` (+1 -0)
📝 `lib/crono/job.rb` (+1 -1)
</details>
### 📄 Description
This avoids calling `ActiveRecord::Base.clear_active_connections!`, which has been removed in Rails 7.2. AFAICT this has always been a delegator to the connection handler, so this should be compatible with older Active Record versions as well.
I needed to update some gems to make things work, as well as add Propshaft after https://github.com/plashchynski/crono/pull/123, since specs wouldn't run without an asset pipeline.
Closes #126
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/plashchynski/crono/pull/127
Author: @janko
Created: 8/19/2024
Status: ✅ Merged
Merged: 8/19/2024
Merged by: @plashchynski
Base:
main← Head:rails-7.2📝 Commits (2)
9a8e804Add Propshaft for testsab4e1e8Callclear_active_connections!on the connection handler📊 Changes
3 files changed (+177 additions, -140 deletions)
View changed files
📝
Gemfile.lock(+175 -139)📝
crono.gemspec(+1 -0)📝
lib/crono/job.rb(+1 -1)📄 Description
This avoids calling
ActiveRecord::Base.clear_active_connections!, which has been removed in Rails 7.2. AFAICT this has always been a delegator to the connection handler, so this should be compatible with older Active Record versions as well.I needed to update some gems to make things work, as well as add Propshaft after https://github.com/plashchynski/crono/pull/123, since specs wouldn't run without an asset pipeline.
Closes #126
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.