Sha256: 630ece598e7743e6bd9a83f6ee398b59e2ddbddf42ffb728394d57207ee050e3
Contents?: true
Size: 454 Bytes
Versions: 6
Compression:
Stored size: 454 Bytes
Contents
module Composable module Tenant class DataSet < ActiveSupport::CurrentAttributes attribute :excluded_tenants resets { tenants.clear } def excluded_tenants super || Set.new end def tenant=(array) tenants[array.first.to_sym] = array.last end def tenant(tenant) tenants[tenant.to_sym] end private def tenants @tenants ||= {} end end end end
Version data entries
6 entries across 6 versions & 1 rubygems