From 18d1e2561f2164d43d766bcc144a6381ba62ee71 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 2 Mar 2017 22:09:44 +0800 Subject: [PATCH] small fix for radiogroup --- app/controllers/admin/surveys_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/surveys_controller.rb b/app/controllers/admin/surveys_controller.rb index faca20d..aee9932 100644 --- a/app/controllers/admin/surveys_controller.rb +++ b/app/controllers/admin/surveys_controller.rb @@ -211,7 +211,7 @@ class Admin::SurveysController < OrbitAdminController if radiogroup.respond_to?(key + '_translations') new_radiogroup.send(key + '_translations=', value) else - new_radiogroup.write_attribute(key, value) rescue nil + new_radiogroup[key] = value end end end