app/views/scrivito/objs/search.json.jbuilder in scrivito_sdk-1.0.0 vs app/views/scrivito/objs/search.json.jbuilder in scrivito_sdk-1.1.0.rc1
- old
+ new
@@ -1,6 +1,6 @@
-json.total @enumerator.size
-json.hits do
- json.merge!(@enumerator.load_batch.map { |obj|
- @formatter.call(obj, scrivito_user, controller.view_context)
- })
+json.total @batch.total
+json.continuation @batch.continuation
+json.hits @batch.objs do |obj|
+ json.id obj.id
+ json.serialized_obj @formatter.call(obj, scrivito_user, controller.view_context)
end