diff options
author | Peter Kozak <spag@golwen.net> | 2013-02-25 11:41:55 -0500 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-02-25 11:41:55 -0500 |
commit | fd07b7b85d2d40d7d2999c2899cc890eda2095fd (patch) | |
tree | bf4fbb797d4b645fbe4752a253297a09de466953 /app/models/sip_account.rb | |
parent | 0442cd19bc9383669b506185356227361a16e442 (diff) |
more polymorphic objects
Diffstat (limited to 'app/models/sip_account.rb')
-rw-r--r-- | app/models/sip_account.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/sip_account.rb b/app/models/sip_account.rb index a39982b..034af7c 100644 --- a/app/models/sip_account.rb +++ b/app/models/sip_account.rb @@ -36,6 +36,8 @@ class SipAccount < ActiveRecord::Base has_many :group_memberships, :as => :item, :dependent => :destroy, :uniq => true has_many :groups, :through => :group_memberships + has_many :ringtones, :as => :ringtoneable, :dependent => :destroy + # Delegations: # delegate :host, :to => :sip_domain, :allow_nil => true |