summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-07 15:57:02 -0500
committerPeter Kozak <spag@golwen.net>2013-03-07 15:57:02 -0500
commit2abc9cfb22e55b709a21b041e04a8221f605e9d7 (patch)
tree7f4c56abc3f38740790d0ce5fe5dcb94ba26c0fe /app/models
parent800cf2f11ab5d7f03a52d5ca35e893654ef520ab (diff)
call forwards view added
Diffstat (limited to 'app/models')
-rw-r--r--app/models/automatic_call_distributor.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/automatic_call_distributor.rb b/app/models/automatic_call_distributor.rb
index 5807757..b9d7c51 100644
--- a/app/models/automatic_call_distributor.rb
+++ b/app/models/automatic_call_distributor.rb
@@ -5,6 +5,8 @@ class AutomaticCallDistributor < ActiveRecord::Base
has_many :acd_agents, :dependent => :destroy
has_many :phone_numbers, :as => :phone_numberable, :dependent => :destroy
+ has_many :call_forwards, :as => :call_forwardable, :dependent => :destroy
+
accepts_nested_attributes_for :phone_numbers,
:reject_if => lambda { |phone_number| phone_number[:number].blank? },
:allow_destroy => true