class MultiTenant::TenantEnforcementClause
Private Instance Methods
tenant_arel()
click to toggle source
# File lib/activerecord-multi-tenant/query_rewriter.rb, line 175 def tenant_arel if defined?(Arel::Nodes::Quoted) @tenant_attribute.eq(Arel::Nodes::Quoted.new(MultiTenant.current_tenant_id)) else @tenant_attribute.eq(MultiTenant.current_tenant_id) end end