diff options
author | spag <spag@golwen.net> | 2013-02-08 11:51:55 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-02-08 11:51:55 +0100 |
commit | 901eb1ce8bdbfcd85678e06086cce5a0d7b50123 (patch) | |
tree | 3a569d26e87fa8e905afb8c993a52cce5af0549e /app/models/softkey.rb | |
parent | 9e723519982c3b442aa90f3728bfddd4025d4a69 (diff) |
set softkeyable
Diffstat (limited to 'app/models/softkey.rb')
-rw-r--r-- | app/models/softkey.rb | 1 |
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 |