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/models/hunt_group.rb | |
parent | 5dcdeb1c1f8c53fd80a0443d61a289e583091416 (diff) |
call_forwards - polymorphism added
Diffstat (limited to 'app/models/hunt_group.rb')
-rw-r--r-- | app/models/hunt_group.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/hunt_group.rb b/app/models/hunt_group.rb index 5011bf0..7338606 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 :call_forwards, :as => :call_forwardable, :dependent => :destroy + has_many :call_forwards, :as => :destinationable, :dependent => :destroy validates_uniqueness_of :name, :scope => :tenant_id, :allow_nil => true, :allow_blank => true |