diff options
author | Peter Kozak <spag@golwen.net> | 2013-02-25 09:29:40 -0500 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-02-25 09:29:40 -0500 |
commit | 0442cd19bc9383669b506185356227361a16e442 (patch) | |
tree | fd6c9f9220ace7a58bd723e9a7103834a695770c /app/controllers/config_siemens_controller.rb | |
parent | 5dcdeb1c1f8c53fd80a0443d61a289e583091416 (diff) |
call_forwards - polymorphism added
Diffstat (limited to 'app/controllers/config_siemens_controller.rb')
-rw-r--r-- | app/controllers/config_siemens_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/config_siemens_controller.rb b/app/controllers/config_siemens_controller.rb index bbeba46..1966d49 100644 --- a/app/controllers/config_siemens_controller.rb +++ b/app/controllers/config_siemens_controller.rb @@ -1068,8 +1068,8 @@ class ConfigSiemensController < ApplicationController phone_numbers.push(phone_number.number) assistant_call_forwardings = phone_number.call_forwards.where(:call_forward_case_id => CallForwardCase.where(:value => 'assistant').first.id) assistant_call_forwardings.each do |assistant_call_forwarding| - if assistant_call_forwarding.call_forwardable_type == 'HuntGroup' && assistant_call_forwarding.call_forwardable_id.to_i > 0 - hunt_groups.push(assistant_call_forwarding.call_forwardable_id.to_i) + if assistant_call_forwarding.destinationable_type == 'HuntGroup' && assistant_call_forwarding.destinationable_id.to_i > 0 + hunt_groups.push(assistant_call_forwarding.destinationable_id.to_i) end end end |