- Add support for Rails 8.0
- Rails 7.2 support
- Drop unsupported rails version 6.1
- Drop unsupported ruby 3.0
- Rails 7.1 support
- Drop unsupported rails versions < 6.1
- Drop unsupported ruby versions < 3.0
- Fix issue where only direct dependencies of
Current
andCurrentInstance
classes are cleared.
- Add better support for registry dependencies in a development environment where classes may be reloaded.
- Add a
global_context_mutually_dependent_on
method to support registering bidirectional references.
- Add support for Ruby 3.2.
- Drop support for Rails 5.2.
- Add support for Rails 7.0.
- Drop unsupported rails versions < 5.2
- Drop unsupported ruby versions < 2.7
- Add support for Rails 6.1.
- Add
RailsMultitenant::GlobalContextRegistry.with_unscoped_queries
- queries executed within the block will skip scoping - Add
RailsMultitenant::GlobalContextRegistry.disable_scoped_queries
andRailsMultitenant::GlobalContextRegistry.enable_scoped_queries
- Methods for skipping and resuming scoping when blocks are not usable
- Add
RailsMultitenant::GlobalContextRegistry.merge!
andRailsMultitenant::GlobalContextRegistry.with_merged_registry
- Drop support for Ruby < 2.4 and Rails < 4.2.
- Add support for Rails 6.
- Provide shorthands to access
RailsMultitenant::GlobalContextRegistry
methods viaRailsMultitenant
. For exampleRailsMultitenant[:organization_id] = 'some value'
will set that value in the registry.
- Rails 5.2 support.
- Modify
Current.current
to return a specified default, when not already initialized, ornil
when no default is specified. - Add
Current.provide_default
to optionally specify a default value forCurrent.current
. - Add
Current.current=
/Current.current?
/Current.current!
/Current.as_current
.
- Switch usage of Fixnum to Integer for Ruby > 2.4
- Test with multiple Rubies
- Fix bug that prevents clearing dependents of classes derived from CurrentInstance.
- Added as_current multi-tenant class method.
- Add Rack middleware to create a new isolated registry per request.
- Rails 5.1 support.
- Optimize
CurrentInstance.current
/CurrentInstance.current_id
/CurrentInstance.current=
/CurrentInstance.current_id=
.
- Fix incorrect Rails version dependency in rubygems.org.
- Add
required
option tomultitenant_on
andmultitenant_on_model
.
- Fix be_multitenant_on matcher to handle models that don't include the
RailsMultitenant::MultitenantModel
module. - Fix
context_entity_id_field
to work with inheritance. - Drop Rails 3.2 and 4.0 support since
unscope
doesn't work propertly with default scopes.
- Fix strip__scope
- Modify
RailsMultitenant::GlobalContextRegistry#new_registry
to accept an arg specifying the new registry to set. The previous registry is still returned.
- Merged PR 2 which adds support for
multi-tenancy based on a foreign key to an external model. As part of this the
multitenant_model_on
method was renamed tomultitenant_on_model
.