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.
217 218 219 220 221 |
# File 'lib/activerecord-multi-tenant/query_rewriter.rb', line 217 def initialize(tenant_attribute, table_left) super(tenant_attribute) @table_left = table_left @model_left = MultiTenant.multi_tenant_model_for_table(MultiTenant::TableNode.table_name(table_left)) end |
Instance Attribute Details
#table_left ⇒ Object (readonly)
Returns the value of attribute table_left.
215 216 217 |
# File 'lib/activerecord-multi-tenant/query_rewriter.rb', line 215 def table_left @table_left end |