From f51151e920bb5efbadd1a2af87dfedf3feab3b54 Mon Sep 17 00:00:00 2001 From: Chris Beer Date: Mon, 28 Feb 2022 16:56:14 -0800 Subject: [PATCH] Use thread_mattr_accessor instead of deprecated ActiveSupport::PerThreadRegistry thread_mattr_accessor was added back in Rails 5. --- lib/blacklight/runtime_registry.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/blacklight/runtime_registry.rb b/lib/blacklight/runtime_registry.rb index 658358f8c8..f0aa0bc31c 100644 --- a/lib/blacklight/runtime_registry.rb +++ b/lib/blacklight/runtime_registry.rb @@ -1,11 +1,7 @@ # frozen_string_literal: true -require 'active_support/per_thread_registry' - module Blacklight class RuntimeRegistry - extend ActiveSupport::PerThreadRegistry - - attr_accessor :connection, :connection_config + thread_mattr_accessor :connection, :connection_config end end