summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-27 08:13:21 +0100
committerPeter Kozak <spag@golwen.net>2013-03-27 08:13:21 +0100
commit41b306402d020aff3615308cdd555b0a05221343 (patch)
tree353f80b4d70a9b5dc8e8eec6a18067fe1d77d126 /app/controllers
parentdf95371d587ca2a0652dff6aee3538c7f0700890 (diff)
voicemail settings
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/voicemail_settings_controller.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/voicemail_settings_controller.rb b/app/controllers/voicemail_settings_controller.rb
index ee8e36b..1b2e371 100644
--- a/app/controllers/voicemail_settings_controller.rb
+++ b/app/controllers/voicemail_settings_controller.rb
@@ -27,8 +27,9 @@ class VoicemailSettingsController < ApplicationController
@voicemail_setting = @voicemail_account.voicemail_settings.find(params[:id])
@no_edit = {
:name => {
- :input => VoicemailSetting::VOICEMAIL_SETTINGS[@voicemail_setting.name][:input],
- :name => @voicemail_setting.name
+ :input => VoicemailSetting::VOICEMAIL_SETTINGS.fetch(@voicemail_setting.name,{}).fetch(:input, {}),
+ :name => @voicemail_setting.name.to_s,
+ :html => VoicemailSetting::VOICEMAIL_SETTINGS.fetch(@voicemail_setting.name,{}).fetch(:html, {}),
},
:description => true
}