Supplier adding and arranging tables

This commit is contained in:
2014-07-01 17:46:19 +02:00
parent de576d54d9
commit 639a707679
14 changed files with 24448 additions and 22627 deletions
@@ -132,6 +132,7 @@ module Suppliers
table = Table.new(number: table_number)
table.supplier = current_supplier
table.section = @section
table.save
end
@section.arrange_tables_in_grid
table_json = ActiveModel::ArraySerializer.new(@section.tables, each_serializer: SupplierTableSerializer, root: false).as_json