End of evening commit, changing supplier to JSONAPI
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class Suppliers::ProductOrderSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
attributes :quantity, :price, :product_name, :product_variant
|
||||
has_one :order, serializer: Suppliers::OrderSerializer
|
||||
has_one :product, serializer: Suppliers::ProductSerializer
|
||||
end
|
||||
Reference in New Issue
Block a user