Module: AtomicTenant
- Defined in:
- lib/atomic_tenant.rb,
lib/atomic_tenant/engine.rb,
lib/atomic_tenant/version.rb,
lib/atomic_tenant/jwt_token.rb,
lib/atomic_tenant/active_job.rb,
lib/atomic_tenant/exceptions.rb,
app/models/atomic_tenant/lti_deployment.rb,
app/models/atomic_tenant/pinned_client_id.rb,
lib/atomic_tenant/canvas_content_migration.rb,
app/models/atomic_tenant/application_record.rb,
app/models/atomic_tenant/pinned_platform_guid.rb,
lib/atomic_tenant/deployment_manager/client_id_strategy.rb,
lib/atomic_tenant/deployment_manager/deployment_manager.rb,
lib/atomic_tenant/current_application_instance_middleware.rb,
lib/atomic_tenant/deployment_manager/platform_guid_strategy.rb,
lib/atomic_tenant/deployment_manager/deployment_manager_strategy.rb
Defined Under Namespace
Modules: ActiveJob, CanvasContentMigration, DeploymentManager, Exceptions, JwtToken, RowLevelSecurity, TenantSwitching, Tenantable
Classes: ApplicationRecord, CurrentApplicationInstanceMiddleware, Engine, LtiDeployment, PinnedClientId, PinnedPlatformGuid
Constant Summary
collapse
- VERSION =
'1.4.0'
Class Method Summary
collapse
Class Method Details
.get_application_instance(iss:, deployment_id:) ⇒ Object
23
24
25
|
# File 'lib/atomic_tenant.rb', line 23
def self.get_application_instance(iss:, deployment_id:)
AtomicTenant::LtiDeployment.find_by(iss: iss, deployment_id: deployment_id)
end
|
.tenant_model ⇒ Object
27
28
29
|
# File 'lib/atomic_tenant.rb', line 27
def self.tenant_model
AtomicTenant.tenants_table.to_s.classify.constantize
end
|
.tenanted_by ⇒ Object
31
32
33
|
# File 'lib/atomic_tenant.rb', line 31
def self.tenanted_by
"#{AtomicTenant.tenants_table.to_s.singularize}_id"
end
|