summaryrefslogtreecommitdiff
path: root/app/controllers/gateway_settings_controller.rb
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-14 09:48:24 +0100
committerspag <spag@golwen.net>2013-01-14 09:48:24 +0100
commitece6303fa2a5aad373fdd4f1393366b846fd374e (patch)
tree7bd250fe6d2aca9b78512ae20c22022beeffe2c7 /app/controllers/gateway_settings_controller.rb
parenteffdf42ddf751d3973b44465168078344a414982 (diff)
save class_type
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