End of evening commit, changing supplier to JSONAPI
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class Suppliers::OrderSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
attributes :state #, :list_id, :section_id, :table_id #, :price
|
||||
|
||||
has_one :list, serializer: Suppliers::ListSerializer
|
||||
has_many :product_orders, serializer: Suppliers::ProductOrderSerializer
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user