Class: MultiTenant::TenantJoinEnforcementClause
- Inherits:
-
BaseTenantEnforcementClause
- Object
- Arel::Nodes::Node
- BaseTenantEnforcementClause
- MultiTenant::TenantJoinEnforcementClause
- Defined in:
- lib/activerecord-multi-tenant/query_rewriter.rb
Instance Attribute Summary collapse
-
#table_left ⇒ Object
readonly
Returns the value of attribute table_left.
Attributes inherited from BaseTenantEnforcementClause
Instance Method Summary collapse
-
#initialize(tenant_attribute, table_left) ⇒ TenantJoinEnforcementClause
constructor
A new instance of TenantJoinEnforcementClause.
Methods inherited from BaseTenantEnforcementClause
Constructor Details
#initialize(tenant_attribute, table_left) ⇒ TenantJoinEnforcementClause
Returns a new instance of TenantJoinEnforcementClause.
189 190 191 192 193 |
# File 'lib/activerecord-multi-tenant/query_rewriter.rb', line 189 def initialize(tenant_attribute, table_left) super(tenant_attribute) @table_left = table_left @model_left = MultiTenant.multi_tenant_model_for_table(table_left.table_name) end |
Instance Attribute Details
#table_left ⇒ Object (readonly)
Returns the value of attribute table_left.
188 189 190 |
# File 'lib/activerecord-multi-tenant/query_rewriter.rb', line 188 def table_left @table_left end |