summaryrefslogtreecommitdiff
path: root/app/models/sip_account.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-08 12:09:17 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-08 12:09:17 +0100
commit6374c0b3e38dfc74eb1b4a5a1fcc5229eacdcaf2 (patch)
tree016deaf97e961973069a592537594348df7bb5a7 /app/models/sip_account.rb
parentdb9dbf03d88cfbd68ce99a242730b9e870339539 (diff)
Added SwitchboardEntry scaffold. switchboard has_many switchboard_entries
Diffstat (limited to 'app/models/sip_account.rb')
-rw-r--r--app/models/sip_account.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/sip_account.rb b/app/models/sip_account.rb
index cdb609d..74a2562 100644
--- a/app/models/sip_account.rb
+++ b/app/models/sip_account.rb
@@ -41,6 +41,8 @@ class SipAccount < ActiveRecord::Base
has_many :call_legs, :class_name => 'Call'
has_many :b_call_legs, :class_name => 'Call', :foreign_key => 'b_sip_account_id'
+ has_many :switchboard_entries, :dependent => :destroy
+
# Delegations:
#
delegate :host, :to => :sip_domain, :allow_nil => true