FIX: Allow Symbol objects to be deserialized in PostRevision (#17510)

Followup to ee07f6da7d111e46ca79454320d027c1aca7e157
This commit is contained in:
David Taylor
2022-07-15 13:14:57 +01:00
committed by GitHub
parent 7cf95e6339
commit f774083016
2 changed files with 12 additions and 1 deletions

View File

@ -23,4 +23,15 @@ describe PostRevision do
}
)
end
it "can serialize and deserialize symbols" do
# Plugins may store symbolized values in this column
pr = Fabricate(:post_revision, modifications: { key: :value })
pr.reload
expect(pr.modifications).to eq(
{
key: :value
}
)
end
end