Style upgrades and emberified supplier lists
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user