13 lines
384 B
Ruby
13 lines
384 B
Ruby
class UserListSerializer < Qwaiter::Serializer
|
|
# user ids for facebook pictures
|
|
#embed :ids
|
|
attributes :state, :needs_help, :needs_payment, :user_requests_closing, :is_paid, :price, :table_id, :table_number, :section_id, :user_ids, :supplier_name, :closed_at
|
|
|
|
#def has_active_orders
|
|
#object.has_active_orders?
|
|
#end
|
|
def supplier_name
|
|
object.supplier.name
|
|
end
|
|
end
|