summaryrefslogtreecommitdiff
path: root/app/models/fax_account.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/fax_account.rb')
-rw-r--r--app/models/fax_account.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/fax_account.rb b/app/models/fax_account.rb
index 683447a..2677c5d 100644
--- a/app/models/fax_account.rb
+++ b/app/models/fax_account.rb
@@ -49,6 +49,7 @@ class FaxAccount < ActiveRecord::Base
tenant = case self.fax_accountable_type
when 'UserGroup' ; fax_accountable.tenant
when 'User' ; fax_accountable.current_tenant || fax_accountable.tenants.last
+ when 'Tenant' ; fax_accountable
else nil
end
self.tenant_id = tenant.id if tenant != nil