JSONApi part1
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class Users::OrderSerializer < Qwaiter::Serializer
|
||||
attributes :state #, :list_id, :section_id, :table_id #, :price
|
||||
|
||||
has_many :product_orders, serializer: Users::ProductOrderSerializer
|
||||
belongs_to :list
|
||||
#belongs_to :section
|
||||
#belongs_to :table
|
||||
end
|
||||
Reference in New Issue
Block a user