summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-07-11 15:34:30 +0200
committerPeter Kozak <spag@golwen.net>2013-07-11 15:34:30 +0200
commiteae6fc3744cda77f120c3dc5afe3b7d7010c265a (patch)
tree59eee7dbc51890cd166323699d116dc023163da2
parent1e939c41ae18e0c19f73af75e4c7e5970acb178a (diff)
depth validation removed
-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