From 75ea82d808880b40b7ec69cb27a10443b7553182 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Thu, 7 Feb 2013 00:48:38 +0600 Subject: [PATCH] [refa #861] add product url --- app/views/api/v1/products/_product.json.jbuilder | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/api/v1/products/_product.json.jbuilder b/app/views/api/v1/products/_product.json.jbuilder index e2453d492..9aa376470 100644 --- a/app/views/api/v1/products/_product.json.jbuilder +++ b/app/views/api/v1/products/_product.json.jbuilder @@ -1 +1,3 @@ json.(product, :id, :name, :description, :main_script, :params, :time_living) +json.url api_v1_product_path(product, :format => :json) +