class RailsMultitenant::Middleware::IsolatedContextRegistry
Public Class Methods
new(app)
click to toggle source
# File lib/rails_multitenant/middleware/isolated_context_registry.rb, line 6 def initialize(app) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/rails_multitenant/middleware/isolated_context_registry.rb, line 10 def call(env) GlobalContextRegistry.with_isolated_registry do @app.call(env) end end