diff options
author | Peter Kozak <spag@golwen.net> | 2013-07-11 15:34:30 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-07-11 15:34:30 +0200 |
commit | eae6fc3744cda77f120c3dc5afe3b7d7010c265a (patch) | |
tree | 59eee7dbc51890cd166323699d116dc023163da2 /app | |
parent | 1e939c41ae18e0c19f73af75e4c7e5970acb178a (diff) |
depth validation removed
Diffstat (limited to 'app')
-rw-r--r-- | app/models/call_forward.rb | 6 |
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 |