From eae6fc3744cda77f120c3dc5afe3b7d7010c265a Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Thu, 11 Jul 2013 15:34:30 +0200 Subject: depth validation removed --- app/models/call_forward.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'app') diff --git a/app/models/call_forward.rb b/app/models/call_forward.rb index 0df2a35..94762e2 100644 --- a/app/models/call_forward.rb +++ b/app/models/call_forward.rb @@ -24,12 +24,6 @@ class CallForward < ActiveRecord::Base :if => Proc.new { |cf| cf.to_voicemail == true } belongs_to :call_forward_case - - validates_numericality_of :depth, - :allow_nil => true, - :only_integer => true, - :greater_than_or_equal_to => 1, - :less_than_or_equal_to => (GsParameter.get('MAX_CALL_FORWARD_DEPTH').nil? ? 0 : GsParameter.get('MAX_CALL_FORWARD_DEPTH')) before_validation { self.timeout = nil if self.call_forward_case_id != 3 -- cgit v1.2.3