Class: TenantRealm::Config
- Inherits:
-
Object
- Object
- TenantRealm::Config
- Defined in:
- lib/tenant_realm/config.rb
Class Attribute Summary collapse
-
.current_tenant ⇒ Object
Returns the value of attribute current_tenant.
-
.dig_db_config ⇒ Object
Returns the value of attribute dig_db_config.
-
.fetch_tenant ⇒ Object
Returns the value of attribute fetch_tenant.
-
.fetch_tenants ⇒ Object
Returns the value of attribute fetch_tenants.
-
.identifier_resolver ⇒ Object
Returns the value of attribute identifier_resolver.
-
.shard_name_from_tenant ⇒ Object
Returns the value of attribute shard_name_from_tenant.
-
.skip_resolver ⇒ Object
Returns the value of attribute skip_resolver.
Class Method Summary collapse
Class Attribute Details
.current_tenant ⇒ Object
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_config ⇒ Object
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_tenant ⇒ Object
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_tenants ⇒ Object
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_resolver ⇒ Object
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_tenant ⇒ Object
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_resolver ⇒ Object
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 |
.current ⇒ Object
20 21 22 |
# File 'lib/tenant_realm/config.rb', line 20 def current @current ||= current_tenant || CurrentTenant end |