summaryrefslogtreecommitdiff
path: root/app/models/softkey.rb
diff options
context:
space:
mode:
authorMario "Kuroir" Ricalde <kuroir@gmail.com>2013-02-13 05:39:43 -0600
committerMario "Kuroir" Ricalde <kuroir@gmail.com>2013-02-13 05:39:43 -0600
commitc2aad881ff34ce544b24847279472448917f38e1 (patch)
tree4b42aa65165f9adcc8e113a20cd141866cb09758 /app/models/softkey.rb
parent791bf973b02b626f876b7e5819e2037dcff90f84 (diff)
parent1776a5b243aa7b62eff09319e2f766426307e220 (diff)
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'app/models/softkey.rb')
-rw-r--r--app/models/softkey.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/softkey.rb b/app/models/softkey.rb
index 83c88ab..4b758e0 100644
--- a/app/models/softkey.rb
+++ b/app/models/softkey.rb
@@ -48,14 +48,14 @@ class Softkey < ActiveRecord::Base
end
def to_s
- if (['call_forwarding'].include?(self.softkey_function.name))
- "#{self.softkeyable}"
- else
+ if self.softkeyable.blank?
if ['log_out', 'log_in'].include?(self.softkey_function.name)
I18n.t("softkeys.functions.#{self.softkey_function.name}")
else
- "#{self.softkey_function.name} : #{self.number.to_s}"
+ "#{self.softkey_function.name} : #{self.number.to_s}"
end
+ else
+ "#{self.softkeyable}"
end
end