summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-04-17 10:26:30 +0200
committerPeter Kozak <spag@golwen.net>2013-04-17 10:26:30 +0200
commit73172e5ce8f863951476559890fdf7528037bc07 (patch)
tree6752290f9c2854148f0ee0a77a6a739b7a62219f /app/models
parenta1eb4fa1f6460dc2c56a5b8799cc6713f1379878 (diff)
tenant fax_accounts
Diffstat (limited to 'app/models')
-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