Sha256: 2df8ea1da82b5a4bf732cd55c64ff17f554ff6ab75f23efd42e7feb8bb95fcd8

Contents?: true

Size: 549 Bytes

Versions: 11

Compression:

Stored size: 549 Bytes

Contents

# frozen_string_literal: true

require 'active_support'
require 'active_support/per_thread_registry'

module DHS
  module Interceptors
    module AutoOauth
      extend ActiveSupport::Concern
      class ThreadRegistry
        # Using ActiveSupports PerThreadRegistry to be able to support Active Support v4.
        # Will switch to thread_mattr_accessor (which comes with Activesupport) when we dropping support for Active Support v4.
        extend ActiveSupport::PerThreadRegistry
        attr_accessor :access_token
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dhs-1.5.0 lib/dhs/interceptors/auto_oauth/thread_registry.rb
dhs-1.4.2 lib/dhs/interceptors/auto_oauth/thread_registry.rb
dhs-1.4.1 lib/dhs/interceptors/auto_oauth/thread_registry.rb
dhs-1.4.0 lib/dhs/interceptors/auto_oauth/thread_registry.rb
dhs-1.3.0 lib/dhs/interceptors/auto_oauth/thread_registry.rb
dhs-1.2.0 lib/dhs/interceptors/auto_oauth/thread_registry.rb
dhs-1.1.0 lib/dhs/interceptors/auto_oauth/thread_registry.rb
dhs-1.0.3 lib/dhs/interceptors/auto_oauth/thread_registry.rb
dhs-1.0.2 lib/dhs/interceptors/auto_oauth/thread_registry.rb
dhs-1.0.1 lib/dhs/interceptors/auto_oauth/thread_registry.rb
dhs-1.0.0 lib/dhs/interceptors/auto_oauth/thread_registry.rb