Sha256: 0f3828184b73f678d220fa669bdd7b22e920d884edb79527d8309d6610e6716b
Contents?: true
Size: 331 Bytes
Versions: 15
Compression:
Stored size: 331 Bytes
Contents
module Yao module Resources module TenantAssociationable def self.included(base) base.friendly_attributes :project_id base.friendly_attributes :tenant_id end def tenant @tenant ||= Yao::Tenant.find(project_id || tenant_id) end alias :project :tenant end end end
Version data entries
15 entries across 15 versions & 1 rubygems