Commit 85618af
committed
Remove obsolete ActiveRecord::ExplainSubscriber reference for Rails 8.1
Rails 8.1 removed the ExplainSubscriber class (commit f488878f1bc),
causing test failures with: NameError: uninitialized constant
ActiveRecord::ExplainSubscriber
The ExplainSubscriber functionality was refactored into ExplainRegistry
with lazy subscription - instead of subscribing at initialization,
Rails 8.1 now subscribes only when .explain is first called via
ExplainRegistry.start.
The spec_helper.rb line that manually subscribed to ExplainSubscriber
is no longer needed or valid. Rails 8.1 handles the subscription
automatically and lazily.
Related Rails commit:
- f488878f1bc "Refactor ExplainRegistry to only be subscribed once used"
- Author: Jean Boussier
- Date: Thu Sep 25 10:37:09 2025 +0200
- Link:
rails/rails@f4888781 parent b36a5d4 commit 85618af
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
| |||
0 commit comments