From ee7954594ed6f43260d550b379afe9eb1ebffbc4 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 2 Mar 2017 22:00:42 +0800 Subject: [PATCH] added rescue to 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 5d6ca58..faca20d 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) + new_radiogroup.write_attribute(key, value) rescue nil end end end