Make time dependent product categories work

This commit is contained in:
2013-02-23 12:53:31 +01:00
parent 73e075fc64
commit 0c3bec5c4a
3 changed files with 42 additions and 6 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ class UserController < ApplicationController
handle_message_params
end
format.json do
h = ProductCategory.for_user(current_user, table: list.table, list: list) # list is performance parameter
h = ProductCategory.for_user(current_user, table: list.table, list: list, supplier: @supplier) # list is performance parameter
render json: h
#products = list.supplier.products
#product_categories = list.supplier.product_categories