Class: TenantRealm::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/tenant_realm/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.current_tenantObject

Returns the value of attribute current_tenant.



6
7
8
# File 'lib/tenant_realm/config.rb', line 6

def current_tenant
  @current_tenant
end

.dig_db_configObject

Returns the value of attribute dig_db_config.



6
7
8
# File 'lib/tenant_realm/config.rb', line 6

def dig_db_config
  @dig_db_config
end

.fetch_tenantObject

Returns the value of attribute fetch_tenant.



6
7
8
# File 'lib/tenant_realm/config.rb', line 6

def fetch_tenant
  @fetch_tenant
end

.fetch_tenantsObject

Returns the value of attribute fetch_tenants.



6
7
8
# File 'lib/tenant_realm/config.rb', line 6

def fetch_tenants
  @fetch_tenants
end

.identifier_resolverObject

Returns the value of attribute identifier_resolver.



6
7
8
# File 'lib/tenant_realm/config.rb', line 6

def identifier_resolver
  @identifier_resolver
end

.shard_name_from_tenantObject

Returns the value of attribute shard_name_from_tenant.



6
7
8
# File 'lib/tenant_realm/config.rb', line 6

def shard_name_from_tenant
  @shard_name_from_tenant
end

.skip_resolverObject

Returns the value of attribute skip_resolver.



6
7
8
# File 'lib/tenant_realm/config.rb', line 6

def skip_resolver
  @skip_resolver
end

Class Method Details

.cache {|Configuration::Cache| ... } ⇒ Object



16
17
18
# File 'lib/tenant_realm/config.rb', line 16

def cache
  yield Configuration::Cache
end

.currentObject



20
21
22
# File 'lib/tenant_realm/config.rb', line 20

def current
  @current ||= current_tenant || CurrentTenant
end