give some love to the waiter app

This commit is contained in:
2016-06-02 16:38:09 +02:00
parent e4461d3d29
commit ca8cc80b22
19 changed files with 124 additions and 26 deletions
@@ -0,0 +1,8 @@
class Waiter::ProductCategoriesController < Waiter::ApplicationController
def index
records = current_supplier.product_categories.include_relation(product: :product_variants)
render json: records, each_serializer: Waiter::ProductCategorySerializer, include: %w[products]
end
end