summaryrefslogtreecommitdiff
path: root/app/models/phone.rb
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-07-23 10:47:20 +0200
committerPeter Kozak <spag@golwen.net>2013-07-23 10:47:20 +0200
commit76dff727fbdf8e44e05bd9231f6958c0250f5883 (patch)
tree33b7ecaf4eb243a7741ca33c5e9c307f0954c617 /app/models/phone.rb
parent25fd86e83aa8b3fbabc6ad01a00bf2be331feda6 (diff)
extension_modules added
Diffstat (limited to 'app/models/phone.rb')
-rw-r--r--app/models/phone.rb5
1 files 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