Activate Ember2 for suppliers
This commit is contained in:
@@ -21,7 +21,7 @@ module Suppliers
|
||||
end
|
||||
@lists.include_relation(:table, :users, orders: {product_orders: :product})
|
||||
|
||||
render json: @lists, each_serializer: SupplierListSerializer
|
||||
render json: @lists, each_serializer: Suppliers::ListSerializer
|
||||
end
|
||||
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ module Suppliers
|
||||
respond_to do |format|
|
||||
if @section.save
|
||||
format.html { redirect_to [:suppliers, @section], notice: t('action.create.successfull', model: Section.model_name.human) }
|
||||
format.json { render json: @section, serializer: SupplierSectionSerializer, status: :created }
|
||||
format.json { render json: @section, serializer: Suppliers::SectionSerializer, status: :created }
|
||||
else
|
||||
format.html { render action: "new" }
|
||||
format.json { render json: {errors: @section.errors}, status: :unprocessable_entity }
|
||||
|
||||
Reference in New Issue
Block a user