lib/rails_multitenant.rb in rails_multitenant-0.10.0 vs lib/rails_multitenant.rb in rails_multitenant-0.11.0
- old
+ new
@@ -4,6 +4,12 @@
require "rails_multitenant/global_context_registry"
require "rails_multitenant/multitenant_model"
require "rails_multitenant/middleware/extensions"
+module RailsMultitenant
+ extend self
+
+ delegate :get, :[], :fetch, :set, :[]=, :delete, :with_isolated_registry, to: :GlobalContextRegistry
+end
+
# rails_multitenant/rspec has to be explicitly included by clients who want to use it