Module: Organizations::ActsAsTenantIntegration

Extended by:
ActiveSupport::Concern
Defined in:
lib/organizations/acts_as_tenant_integration.rb

Overview

Integration concern for acts_as_tenant gem. Automatically sets the current tenant to the current organization.

This will automatically call set_current_tenant(current_organization) on each request, allowing acts_as_tenant to scope queries.

Examples:

Include in ApplicationController

class ApplicationController < ActionController::Base
  include Organizations::ControllerHelpers
  include Organizations::ActsAsTenantIntegration
end