Use JSON.parse in user settings (#38237)
This commit is contained in:
parent
4328807f28
commit
0e14224eaf
@ -6,7 +6,7 @@ class UserSettingsSerializer
|
|||||||
if value.blank?
|
if value.blank?
|
||||||
{}
|
{}
|
||||||
else
|
else
|
||||||
Oj.load(value, symbol_keys: true)
|
JSON.parse(value, symbolize_names: true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -14,6 +14,6 @@ class UserSettingsSerializer
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.dump(value)
|
def self.dump(value)
|
||||||
Oj.dump(value.as_json)
|
JSON.generate(value.as_json)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user