added rescue to radiogroup
This commit is contained in:
parent
034ac421ce
commit
ee7954594e
|
@ -211,7 +211,7 @@ class Admin::SurveysController < OrbitAdminController
|
||||||
if radiogroup.respond_to?(key + '_translations')
|
if radiogroup.respond_to?(key + '_translations')
|
||||||
new_radiogroup.send(key + '_translations=', value)
|
new_radiogroup.send(key + '_translations=', value)
|
||||||
else
|
else
|
||||||
new_radiogroup.write_attribute(key, value)
|
new_radiogroup.write_attribute(key, value) rescue nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue