summaryrefslogtreecommitdiff
path: root/app/controllers/voicemail_settings_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/voicemail_settings_controller.rb')
-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
}