Sha256: 2a9f2ed3cd18e22d83c217186283eaa179131cbb99c2f712a77464123b569c9e

Contents?: true

Size: 275 Bytes

Versions: 8

Compression:

Stored size: 275 Bytes

Contents

module RailsMultitenant
  module Middleware
    class IsolatedContextRegistry
      def initialize(app)
        @app = app
      end

      def call(env)
        GlobalContextRegistry.with_isolated_registry do
          @app.call(env)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rails_multitenant-0.12.0 lib/rails_multitenant/middleware/isolated_context_registry.rb
rails_multitenant-0.11.0 lib/rails_multitenant/middleware/isolated_context_registry.rb
rails_multitenant-0.10.0 lib/rails_multitenant/middleware/isolated_context_registry.rb
rails_multitenant-0.9.0 lib/rails_multitenant/middleware/isolated_context_registry.rb
rails_multitenant-0.8.0 lib/rails_multitenant/middleware/isolated_context_registry.rb
rails_multitenant-0.7.2 lib/rails_multitenant/middleware/isolated_context_registry.rb
rails_multitenant-0.7.1 lib/rails_multitenant/middleware/isolated_context_registry.rb
rails_multitenant-0.7.0 lib/rails_multitenant/middleware/isolated_context_registry.rb