diff options
author | Peter Kozak <spag@golwen.net> | 2013-07-11 15:37:16 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-07-11 15:37:16 +0200 |
commit | ddbc75fa1ac525b8721fc5b2f40f91b9df94ee2f (patch) | |
tree | 40a6ec752cdd3a11d72bd7414e4cc5c19bb17d78 /app | |
parent | eae6fc3744cda77f120c3dc5afe3b7d7010c265a (diff) |
parent can be changed
Diffstat (limited to 'app')
-rw-r--r-- | app/models/call_forward.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/app/models/call_forward.rb b/app/models/call_forward.rb index 94762e2..874a0de 100644 --- a/app/models/call_forward.rb +++ b/app/models/call_forward.rb @@ -44,13 +44,6 @@ class CallForward < ActiveRecord::Base validates_presence_of :uuid validates_uniqueness_of :uuid - # Make sure the call forward's parent can't be changed: - before_validation { |cfwd| - if cfwd.id && (cfwd.call_forwardable_id != cfwd.call_forwardable_id_was || cfwd.call_forwardable_type != cfwd.call_forwardable_type_was) - errors.add( :call_forwardable_id, "cannot be changed." ) - end - } - before_validation :resolve_prerouting after_save :set_presence |