Skip to content

Commit

Permalink
Use thread_mattr_accessor instead of deprecated ActiveSupport::PerThr…
Browse files Browse the repository at this point in the history
…eadRegistry

thread_mattr_accessor was added back in Rails 5.
  • Loading branch information
cbeer committed Mar 14, 2022
1 parent 3dfc4fc commit f51151e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/blacklight/runtime_registry.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f51151e

Please sign in to comment.