lib/mailkick/serializer.rb in mailkick-1.1.1 vs lib/mailkick/serializer.rb in mailkick-1.1.2

- old
+ new

@@ -1,14 +1,14 @@ # need custom class due to # https://github.com/rails/rails/issues/47185 module Mailkick class Serializer def self.dump(value) - JSON.dump(value) + ActiveSupport::JSON.encode(value) end def self.load(value) - JSON.load(value) + ActiveSupport::JSON.decode(value) rescue JSON::ParserError Marshal.load(value) end end end