Skip to content

Latest commit

 

History

History
101 lines (75 loc) · 3.26 KB

CHANGELOG.md

File metadata and controls

101 lines (75 loc) · 3.26 KB

Changelog

0.21.0

  • Add support for Rails 8.0

0.20.0

  • Rails 7.2 support
  • Drop unsupported rails version 6.1
  • Drop unsupported ruby 3.0

0.19.0

  • Rails 7.1 support
  • Drop unsupported rails versions < 6.1
  • Drop unsupported ruby versions < 3.0

0.18.1

  • Fix issue where only direct dependencies of Current and CurrentInstance classes are cleared.

0.18.0

  • 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.

0.17.0

  • Add support for Ruby 3.2.
  • Drop support for Rails 5.2.

0.16.0

  • Add support for Rails 7.0.
  • Drop unsupported rails versions < 5.2
  • Drop unsupported ruby versions < 2.7

0.15.0

  • Add support for Rails 6.1.

0.14.0

  • Add RailsMultitenant::GlobalContextRegistry.with_unscoped_queries - queries executed within the block will skip scoping
  • Add RailsMultitenant::GlobalContextRegistry.disable_scoped_queries and RailsMultitenant::GlobalContextRegistry.enable_scoped_queries - Methods for skipping and resuming scoping when blocks are not usable

0.13.0

  • Add RailsMultitenant::GlobalContextRegistry.merge! and RailsMultitenant::GlobalContextRegistry.with_merged_registry

0.12.0

  • Drop support for Ruby < 2.4 and Rails < 4.2.
  • Add support for Rails 6.

0.11.0

  • Provide shorthands to access RailsMultitenant::GlobalContextRegistry methods via RailsMultitenant. For example RailsMultitenant[:organization_id] = 'some value' will set that value in the registry.

0.10.0

  • Rails 5.2 support.

0.9.0

  • Modify Current.current to return a specified default, when not already initialized, or nil when no default is specified.
  • Add Current.provide_default to optionally specify a default value for Current.current.
  • Add Current.current= / Current.current? / Current.current! / Current.as_current.

0.8.0

  • Switch usage of Fixnum to Integer for Ruby > 2.4
  • Test with multiple Rubies

0.7.2

  • Fix bug that prevents clearing dependents of classes derived from CurrentInstance.

0.7.1

  • Added as_current multi-tenant class method.

0.7.0

  • Add Rack middleware to create a new isolated registry per request.

0.6.0

  • Rails 5.1 support.

0.5.2

  • Optimize CurrentInstance.current / CurrentInstance.current_id / CurrentInstance.current= / CurrentInstance.current_id=.

0.5.1

  • Fix incorrect Rails version dependency in rubygems.org.

0.5.0

  • Add required option to multitenant_on and multitenant_on_model.

0.4.0

  • 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.

0.3.1

  • Fix strip__scope

0.3.0

  • Modify RailsMultitenant::GlobalContextRegistry#new_registry to accept an arg specifying the new registry to set. The previous registry is still returned.

0.2.0

  • 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 to multitenant_on_model.