summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-02-08 11:51:55 +0100
committerspag <spag@golwen.net>2013-02-08 11:51:55 +0100
commit901eb1ce8bdbfcd85678e06086cce5a0d7b50123 (patch)
tree3a569d26e87fa8e905afb8c993a52cce5af0549e
parent9e723519982c3b442aa90f3728bfddd4025d4a69 (diff)
set softkeyable
-rw-r--r--app/models/softkey.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/softkey.rb b/app/models/softkey.rb
index f038acd..3ae7e95 100644
--- a/app/models/softkey.rb
+++ b/app/models/softkey.rb
@@ -85,6 +85,7 @@ class Softkey < ActiveRecord::Base
self.softkeyable_type = nil
end
if ['call_forwarding'].include?(self.softkey_function.name)
+ self.softkeyable = CallForward.where(:id => self.softkeyable_id).first
self.number = nil
end
end