Commit 16281db
Require "logger" before "active_record" in spec helper
ActiveRecord 6.0 / 6.1 reference the top-level Logger constant at
load time via ActiveSupport::LoggerThreadSafeLevel. If logger is not
required before active_support is loaded, requiring active_record
fails with:
NameError: uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger
Explicitly require "logger" first so the older Rails rows in the
per-Rails gemfile matrix (AR 6.0 / 6.1) can load the specs.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 71de47a commit 16281db
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments