small fix for radiogroup

This commit is contained in:
Harry Bomrah 2017-03-02 22:09:44 +08:00
parent ee7954594e
commit 18d1e2561f
1 changed files with 1 additions and 1 deletions

View File

@ -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