mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 23:28:08 +01:00
[Glitch] Fix user settings migration script failing in some cases
This commit is contained in:
parent
bfe46d08f9
commit
251c5ed22e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue