From 76dff727fbdf8e44e05bd9231f6958c0250f5883 Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Tue, 23 Jul 2013 10:47:20 +0200 Subject: extension_modules added --- app/models/phone.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/models/phone.rb b/app/models/phone.rb index 8b41b59..93553a2 100644 --- a/app/models/phone.rb +++ b/app/models/phone.rb @@ -13,6 +13,8 @@ class Phone < ActiveRecord::Base has_many :phone_sip_accounts, :dependent => :destroy, :uniq => true, :order => :position has_many :sip_accounts, :through => :phone_sip_accounts + + has_many :extension_modules belongs_to :tenant belongs_to :fallback_sip_account, :class_name => "SipAccount" @@ -195,8 +197,7 @@ class Phone < ActiveRecord::Base return true end - private - + private # Sanitize MAC address. # def sanitize_mac_address -- cgit v1.2.3