lib/dm-serializer/to_json.rb in dm-serializer-1.2.0 vs lib/dm-serializer/to_json.rb in dm-serializer-1.2.1

- old
+ new

@@ -84,10 +84,10 @@ resource_options = options.merge(:to_json => false) collection = map { |resource| resource.to_json(resource_options) } # default to making JSON if options.fetch(:to_json, true) - collection.to_json + MultiJson.encode(collection) else collection end end end