SCI-2982, handle the empty json condition

This commit is contained in:
Miha Mencin 2019-01-31 09:43:41 +01:00
parent ed388db723
commit 3ec62758fe

View file

@ -1,6 +1,6 @@
class JsonbHashSerializer
def self.dump(hash)
hash.to_json
hash.nil? ? "{}" : hash.to_json
end
def self.load(hash)