summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/call_forward.rb6
1 files changed, 0 insertions, 6 deletions
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