Skip to content

Commit 951a728

Browse files
committed
Fix "uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger"
1 parent 33d1264 commit 951a728

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/spec_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
require "bundler/setup"
2+
if Bundler.definition.specs.find { |s| s.name == "activerecord" }.version < Gem::Version.new("7.1")
3+
# Workaround for https://github.com/rails/rails/issues/54260
4+
require "logger"
5+
end
26
require "activerecord/debug_errors"
37

48
RSpec.configure do |config|

0 commit comments

Comments
 (0)