mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-22 13:17:13 +00:00
Fix user settings migration script failing in some cases (#24453)
This commit is contained in:
parent
3d8bd093b9
commit
369f239f7b
|
@ -52,7 +52,7 @@ class MoveUserSettings < 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…
Reference in a new issue