Style upgrades and emberified supplier lists

This commit is contained in:
2014-04-24 16:41:08 +02:00
parent 546e4499ea
commit 27a1022eb4
56 changed files with 321 additions and 139 deletions
@@ -21,7 +21,7 @@ module Suppliers
respond_to do |format|
format.html # index.html.erb
format.json { render json: @lists, each_serializer: ListSerializer }
format.json { render json: @lists, each_serializer: SupplierListSerializer }
end
end
@@ -64,7 +64,7 @@ module Suppliers
if params[:old_style] then
render json: @list.with_orders_as_json
else
render json: @list
render json: @list, serializer: SupplierListSerializer
end
end
end