From 0dd57fc3de3ca8b712df78ead87888c0c769617d Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Wed, 30 Dec 2020 18:16:51 +0000 Subject: [PATCH] Render an empty JSON object instead of a blank string --- app/controllers/api/order_cycles_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/order_cycles_controller.rb b/app/controllers/api/order_cycles_controller.rb index bc1bba3d5a..c40ec641b2 100644 --- a/app/controllers/api/order_cycles_controller.rb +++ b/app/controllers/api/order_cycles_controller.rb @@ -45,7 +45,7 @@ module Api private def render_no_products - render status: :not_found, json: '' + render status: :not_found, json: {} end def product_properties