lib/yao/resources/tenant_associationable.rb in yao-0.13.4 vs lib/yao/resources/tenant_associationable.rb in yao-0.14.0

- old
+ new

@@ -5,9 +5,10 @@ def self.included(base) base.friendly_attributes :project_id base.friendly_attributes :tenant_id end + # @return [Yao::Resources::Tenant] def tenant @tenant ||= Yao::Tenant.find(project_id || tenant_id) end alias :project :tenant