[Glitch] Fix user settings migration script failing in some cases

th-downstream
Claire 2 years ago
parent 3237eb3759
commit 249e57f15f

@ -24,7 +24,7 @@ class MoveGlitchUserSettings < ActiveRecord::Migration[6.1]
end end
def value def value
YAML.safe_load(self[:value], permitted_classes: [ActiveSupport::HashWithIndifferentAccess]) if self[:value].present? YAML.safe_load(self[:value], permitted_classes: [ActiveSupport::HashWithIndifferentAccess, Symbol]) if self[:value].present?
end end
end end

Loading…
Cancel
Save