Sha256: 46f640727b680fd673d58f38d8905c60698fef0a4e2502c583950e1513eda82b

Contents?: true

Size: 414 Bytes

Versions: 4

Compression:

Stored size: 414 Bytes

Contents

# frozen_string_literal: true

module RailsMultitenant
  module GlobalContextRegistry
    module RegistryDependentOn
      # Is this class dependent on changes in another GlobalContextRegistry-
      # stored object? Register that dependency here.
      def global_context_dependent_on(*klasses)
        klasses.each { |klass| GlobalContextRegistry.send(:add_dependency, klass, self) }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_multitenant-0.17.0 lib/rails_multitenant/global_context_registry/registry_dependent_on.rb
rails_multitenant-0.16.0 lib/rails_multitenant/global_context_registry/registry_dependent_on.rb
rails_multitenant-0.15.0 lib/rails_multitenant/global_context_registry/registry_dependent_on.rb
rails_multitenant-0.14.0 lib/rails_multitenant/global_context_registry/registry_dependent_on.rb