Render an empty JSON object instead of a blank string

This commit is contained in:
Matt-Yorkley
2020-12-30 18:16:51 +00:00
parent 04e4893723
commit 0dd57fc3de

View File

@@ -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