Product category improvements

This commit is contained in:
2013-02-26 09:40:29 +01:00
parent 0c3bec5c4a
commit 08333cb1bb
6 changed files with 42 additions and 9 deletions
@@ -15,7 +15,7 @@ module Suppliers
# GET /products/1
# GET /products/1.json
def show
@product = ProductDecorator.find_by_supplier_id_and_id!(current_supplier.id, params[:id])
@product = ProductDecorator.decorate(Product.find_by_supplier_id_and_id!(current_supplier.id, params[:id]))
respond_to do |format|
format.html # show.html.erb