summaryrefslogtreecommitdiff
path: root/app/models/hunt_group.rb
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-07-08 13:25:32 +0200
committerPeter Kozak <spag@golwen.net>2013-07-08 13:25:32 +0200
commit3def6156141c1235d1ab0782900d43c097676243 (patch)
treeb9b147d1f9d03b546c1f62dbaf60477d4d1e0ebf /app/models/hunt_group.rb
parent961453a7a7d4926e837e9f9225074e3d0817f665 (diff)
destrination_call_forwards class_name added
Diffstat (limited to 'app/models/hunt_group.rb')
-rw-r--r--app/models/hunt_group.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/hunt_group.rb b/app/models/hunt_group.rb
index 93279ae..fac0cc5 100644
--- a/app/models/hunt_group.rb
+++ b/app/models/hunt_group.rb
@@ -2,7 +2,7 @@ class HuntGroup < ActiveRecord::Base
attr_accessible :name, :strategy, :seconds_between_jumps, :phone_numbers_attributes
belongs_to :tenant, :touch => true
- has_many :destrination_call_forwards, :as => :destinationable, :dependent => :destroy
+ has_many :destrination_call_forwards, :class_name => 'CallForward', :as => :destinationable, :dependent => :destroy
has_many :call_forwards, :as => :call_forwardable, :dependent => :destroy
validates_uniqueness_of :name, :scope => :tenant_id,