summaryrefslogtreecommitdiff
path: root/app/controllers/gateway_settings_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/gateway_settings_controller.rb')
-rw-r--r--app/controllers/gateway_settings_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/gateway_settings_controller.rb b/app/controllers/gateway_settings_controller.rb
index 4d19b35..0304411 100644
--- a/app/controllers/gateway_settings_controller.rb
+++ b/app/controllers/gateway_settings_controller.rb
@@ -15,6 +15,7 @@ class GatewaySettingsController < ApplicationController
def create
@gateway_setting = @gateway.gateway_settings.build(params[:gateway_setting])
+ @gateway_setting.class_type = GatewaySetting::GATEWAY_SETTINGS[@gateway.technology][@gateway_setting.name]
if @gateway_setting.save
redirect_to @gateway, :notice => t('gateway_settings.controller.successfuly_created')
else