Prepare angular controller and serialized data

This commit is contained in:
Matt-Yorkley
2018-09-12 12:49:16 +01:00
parent 0f627cdf39
commit e577bcb46f
4 changed files with 24 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
class Api::Admin::OrderSerializer < ActiveModel::Serializer
attributes :id, :number, :full_name, :email, :phone, :completed_at
attributes :id, :number, :full_name, :email, :phone, :completed_at, :payment_total
has_one :distributor, serializer: Api::Admin::IdSerializer
has_one :order_cycle, serializer: Api::Admin::IdSerializer