lib/ghost_writer/document.rb in ghost_writer-0.1.0 vs lib/ghost_writer/document.rb in ghost_writer-0.1.1

- old
+ new

@@ -65,7 +65,9 @@ if data.is_a?(Array) || data.is_a?(Hash) JSON.pretty_generate(data) else data end + rescue MultiJson::DecodeError + body end end