Files
mozo-backend/app/serializers/users/product_order_serializer.rb
T
2025-09-20 17:35:58 -05:00

8 lines
296 B
Ruby

class Users::ProductOrderSerializer
include Mozo::UserBaseSerializer
attributes :quantity, :price, :product_name, :product_variant
# belongs_to :product #DO NOT USE THIS, THIS IS NOT NEEDED, already included in /tables/:id/supplier
has_one :order, serializer: Users::OrderSerializer
end