Load design docs with an ejson body
authorPaul J. Davis <paul.joseph.davis@gmail.com>
Thu, 14 Aug 2014 17:47:51 +0000 (12:47 -0500)
committerPaul J. Davis <paul.joseph.davis@gmail.com>
Thu, 14 Aug 2014 17:47:51 +0000 (12:47 -0500)
src/ddoc_cache_opener.erl

index 168b455..1ef3ec8 100644 (file)
@@ -117,10 +117,10 @@ match_newest(Key) ->
     end.
 
 recover_doc(DbName, DDocId) ->
-    fabric:open_doc(DbName, DDocId, []).
+    fabric:open_doc(DbName, DDocId, [ejson_body]).
 
 recover_doc(DbName, DDocId, Rev) ->
-    {ok, [Resp]} = fabric:open_revs(DbName, DDocId, [Rev], []),
+    {ok, [Resp]} = fabric:open_revs(DbName, DDocId, [Rev], [ejson_body]),
     Resp.
 
 recover_validation_funs(DbName) ->